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
7a0ae2f4
Commit
7a0ae2f4
authored
Apr 07, 2016
by
danh-arm
Browse files
Merge pull request #584 from soby-mathew/sm/enable_scr_sif
Enable SCR_EL3.SIF bit
parents
0892f6b6
99e58f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/firmware-design.md
View file @
7a0ae2f4
...
...
@@ -176,7 +176,9 @@ BL1 performs minimal architectural initialization as follows.
- `SCR_EL3`. The register width of the next lower exception level is set
to AArch64 by setting the `SCR.RW` bit. The `SCR.EA` bit is set to trap
both External Aborts and SError Interrupts in EL3.
both External Aborts and SError Interrupts in EL3. The `SCR.SIF` bit is
also set to disable instruction fetches from Non-secure memory when in
secure state.
- `CPTR_EL3`. Accesses to the `CPACR_EL1` register from EL1 or EL2, or the
`CPTR_EL2` register from EL2 are configured to not trap to EL3 by
...
...
include/common/el3_common_macros.S
View file @
7a0ae2f4
...
...
@@ -70,11 +70,12 @@
isb
/
*
---------------------------------------------------------------------
*
Early
set
RES1
bits
in
SCR_EL3
.
Set
EA
bit
as
well
to
catch
both
*
External
Aborts
and
SError
Interrupts
in
EL3
.
*
Early
set
RES1
bits
in
SCR_EL3
.
Set
EA
bit
to
catch
both
*
External
Aborts
and
SError
Interrupts
in
EL3
and
also
the
SIF
bit
*
to
disable
instruction
fetches
from
Non
-
secure
memory
.
*
---------------------------------------------------------------------
*/
mov
x0
,
#(
SCR_RES1_BITS
|
SCR_EA_BIT
)
mov
x0
,
#(
SCR_RES1_BITS
| SCR_EA_BIT
|
SCR_SIF_BIT
)
msr
scr_el3
,
x0
/
*
---------------------------------------------------------------------
*
Enable
External
Aborts
and
SError
Interrupts
now
that
the
exception
...
...
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