Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
d07baec4
Commit
d07baec4
authored
10 years ago
by
Andrew Thoelke
Browse files
Options
Download
Plain Diff
Merge pull request #206 from soby-mathew/sm/reset_cntvoff
Reset CNTVOFF_EL2 register before exit into EL1 on warm boot
parents
7e998c42
14c0526b
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
v1.2
v1.2-rc0
v1.1
v1.1-rc3
v1.1-rc2
v1.1-rc1
v1.1-rc0
v1.1-Juno-0.1
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bl31/context_mgmt.c
+3
-0
bl31/context_mgmt.c
include/lib/aarch64/arch_helpers.h
+2
-0
include/lib/aarch64/arch_helpers.h
with
5 additions
and
0 deletions
+5
-0
bl31/context_mgmt.c
View file @
d07baec4
...
...
@@ -250,6 +250,9 @@ void cm_prepare_el3_exit(uint32_t security_state)
/* Enable EL1 access to timer */
write_cnthctl_el2
(
EL1PCEN_BIT
|
EL1PCTEN_BIT
);
/* Reset CNTVOFF_EL2 */
write_cntvoff_el2
(
0
);
/* Set VPIDR, VMPIDR to match MIDR, MPIDR */
write_vpidr_el2
(
read_midr_el1
());
write_vmpidr_el2
(
read_mpidr_el1
());
...
...
This diff is collapsed.
Click to expand it.
include/lib/aarch64/arch_helpers.h
View file @
d07baec4
...
...
@@ -262,6 +262,8 @@ DEFINE_SYSREG_RW_FUNCS(cnthctl_el2)
DEFINE_SYSREG_RW_FUNCS
(
tpidr_el3
)
DEFINE_SYSREG_RW_FUNCS
(
cntvoff_el2
)
DEFINE_SYSREG_RW_FUNCS
(
vpidr_el2
)
DEFINE_SYSREG_RW_FUNCS
(
vmpidr_el2
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help