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
c0ce16fb
Unverified
Commit
c0ce16fb
authored
Mar 13, 2019
by
Soby Mathew
Committed by
GitHub
Mar 13, 2019
Browse files
Merge pull request #1878 from jts-arm/sctlr
Apply stricter speculative load restriction
parents
c61a807a
02b57943
Changes
5
Hide whitespace changes
Inline
Side-by-side
bl2/aarch32/bl2_entrypoint.S
View file @
c0ce16fb
...
...
@@ -42,12 +42,13 @@ func bl2_entrypoint
stcopr
r0
,
VBAR
isb
/
*
-----------------------------------------------------
*
Enable
the
instruction
cache
*
-----------------------------------------------------
/
*
-----------------------------------------------------
---
*
Enable
the
instruction
cache
-
disable
speculative
loads
*
-----------------------------------------------------
---
*/
ldcopr
r0
,
SCTLR
orr
r0
,
r0
,
#
SCTLR_I_BIT
bic
r0
,
r0
,
#
SCTLR_DSSBS_BIT
stcopr
r0
,
SCTLR
isb
...
...
bl2/aarch64/bl2_entrypoint.S
View file @
c0ce16fb
...
...
@@ -41,12 +41,14 @@ func bl2_entrypoint
/
*
---------------------------------------------
*
Enable
the
instruction
cache
,
stack
pointer
*
and
data
access
alignment
checks
*
and
data
access
alignment
checks
and
disable
*
speculative
loads
.
*
---------------------------------------------
*/
mov
x1
,
#(
SCTLR_I_BIT
| SCTLR_A_BIT |
SCTLR_SA_BIT
)
mrs
x0
,
sctlr_el1
orr
x0
,
x0
,
x1
bic
x0
,
x0
,
#
SCTLR_DSSBS_BIT
msr
sctlr_el1
,
x0
isb
...
...
bl2u/aarch32/bl2u_entrypoint.S
View file @
c0ce16fb
/*
*
Copyright
(
c
)
2016
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2016
-
2019
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
...
...
@@ -41,12 +41,13 @@ func bl2u_entrypoint
stcopr
r0
,
VBAR
isb
/
*
-----------------------------------------------------
*
Enable
the
instruction
cache
*
-----------------------------------------------------
/
*
-----------------------------------------------------
---
*
Enable
the
instruction
cache
-
disable
speculative
loads
*
-----------------------------------------------------
---
*/
ldcopr
r0
,
SCTLR
orr
r0
,
r0
,
#
SCTLR_I_BIT
bic
r0
,
r0
,
#
SCTLR_DSSBS_BIT
stcopr
r0
,
SCTLR
isb
...
...
bl2u/aarch64/bl2u_entrypoint.S
View file @
c0ce16fb
/*
*
Copyright
(
c
)
2015
-
201
7
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2015
-
201
9
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
...
...
@@ -38,12 +38,14 @@ func bl2u_entrypoint
/
*
---------------------------------------------
*
Enable
the
instruction
cache
,
stack
pointer
*
and
data
access
alignment
checks
*
and
data
access
alignment
checks
and
disable
*
speculative
loads
.
*
---------------------------------------------
*/
mov
x1
,
#(
SCTLR_I_BIT
| SCTLR_A_BIT |
SCTLR_SA_BIT
)
mrs
x0
,
sctlr_el1
orr
x0
,
x0
,
x1
bic
x0
,
x0
,
#
SCTLR_DSSBS_BIT
msr
sctlr_el1
,
x0
isb
...
...
bl32/tsp/aarch64/tsp_entrypoint.S
View file @
c0ce16fb
...
...
@@ -63,12 +63,14 @@ func tsp_entrypoint _align=3
/
*
---------------------------------------------
*
Enable
the
instruction
cache
,
stack
pointer
*
and
data
access
alignment
checks
*
and
data
access
alignment
checks
and
disable
*
speculative
loads
.
*
---------------------------------------------
*/
mov
x1
,
#(
SCTLR_I_BIT
| SCTLR_A_BIT |
SCTLR_SA_BIT
)
mrs
x0
,
sctlr_el1
orr
x0
,
x0
,
x1
bic
x0
,
x0
,
#
SCTLR_DSSBS_BIT
msr
sctlr_el1
,
x0
isb
...
...
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