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
8121bc0f
Commit
8121bc0f
authored
Sep 11, 2017
by
davidcunado-arm
Committed by
GitHub
Sep 11, 2017
Browse files
Merge pull request #1084 from davidcunado-arm/dc/warmboot_a32
Set NS version SCTLR during warmboot path
parents
ff07ca20
88ad1461
Changes
1
Hide whitespace changes
Inline
Side-by-side
bl32/sp_min/sp_min_main.c
View file @
8121bc0f
...
...
@@ -196,6 +196,8 @@ void sp_min_main(void)
void
sp_min_warm_boot
(
void
)
{
smc_ctx_t
*
next_smc_ctx
;
cpu_context_t
*
ctx
=
cm_get_context
(
NON_SECURE
);
u_register_t
ns_sctlr
;
psci_warmboot_entrypoint
();
...
...
@@ -206,6 +208,16 @@ void sp_min_warm_boot(void)
copy_cpu_ctx_to_smc_stx
(
get_regs_ctx
(
cm_get_context
(
NON_SECURE
)),
next_smc_ctx
);
/* Temporarily set the NS bit to access NS SCTLR */
write_scr
(
read_scr
()
|
SCR_NS_BIT
);
isb
();
ns_sctlr
=
read_ctx_reg
(
get_regs_ctx
(
ctx
),
CTX_NS_SCTLR
);
write_sctlr
(
ns_sctlr
);
isb
();
write_scr
(
read_scr
()
&
~
SCR_NS_BIT
);
isb
();
}
#if SP_MIN_WITH_SECURE_FIQ
...
...
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