Skip to content
GitLab
Menu
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
Oct 10, 2014
by
Andrew Thoelke
Browse files
Merge pull request #206 from soby-mathew/sm/reset_cntvoff
Reset CNTVOFF_EL2 register before exit into EL1 on warm boot
parents
7e998c42
14c0526b
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
());
...
...
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
)
...
...
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