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
9fa849d3
Commit
9fa849d3
authored
Apr 12, 2021
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
Apr 12, 2021
Browse files
Merge "arch: Enable `FEAT_SB` for supported non-Armv8.5-A platforms" into integration
parents
160bfb27
4e04478a
Changes
3
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
9fa849d3
...
@@ -245,6 +245,13 @@ endif # arch-features
...
@@ -245,6 +245,13 @@ endif # arch-features
# Determine if FEAT_RNG is supported
# Determine if FEAT_RNG is supported
ENABLE_FEAT_RNG
=
$(
if
$(
findstring
rng,
${
arch
-features
})
,1,0)
ENABLE_FEAT_RNG
=
$(
if
$(
findstring
rng,
${
arch
-features
})
,1,0)
# Determine if FEAT_SB is supported
ENABLE_FEAT_SB
=
$(
if
$(
findstring
sb
,
${
arch
-features
})
,1,0)
ifeq
"8.5" "$(word 1, $(sort 8.5 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
ENABLE_FEAT_SB
=
1
endif
ifneq
($(findstring armclang,$(notdir $(CC))),)
ifneq
($(findstring armclang,$(notdir $(CC))),)
TF_CFLAGS_aarch32
=
-target arm-arm-none-eabi
$
(march32-directive)
TF_CFLAGS_aarch32
=
-target arm-arm-none-eabi
$
(march32-directive)
TF_CFLAGS_aarch64
=
-target aarch64-arm-none-eabi
$
(march64-directive)
TF_CFLAGS_aarch64
=
-target aarch64-arm-none-eabi
$
(march64-directive)
...
@@ -945,6 +952,7 @@ $(eval $(call assert_booleans,\
...
@@ -945,6 +952,7 @@ $(eval $(call assert_booleans,\
COT_DESC_IN_DTB
\
COT_DESC_IN_DTB
\
USE_SP804_TIMER
\
USE_SP804_TIMER
\
ENABLE_FEAT_RNG
\
ENABLE_FEAT_RNG
\
ENABLE_FEAT_SB
\
)))
)))
$(eval
$(call
assert_numerics,\
$(eval
$(call
assert_numerics,\
...
@@ -1038,6 +1046,7 @@ $(eval $(call add_defines,\
...
@@ -1038,6 +1046,7 @@ $(eval $(call add_defines,\
COT_DESC_IN_DTB
\
COT_DESC_IN_DTB
\
USE_SP804_TIMER
\
USE_SP804_TIMER
\
ENABLE_FEAT_RNG
\
ENABLE_FEAT_RNG
\
ENABLE_FEAT_SB
\
)))
)))
ifeq
(${SANITIZE_UB},trap)
ifeq
(${SANITIZE_UB},trap)
...
...
include/arch/aarch32/asm_macros.S
View file @
9fa849d3
...
@@ -107,12 +107,12 @@
...
@@ -107,12 +107,12 @@
#else
#else
/
*
/
*
*
Macro
for
mitigating
against
speculative
execution
beyond
ERET
.
*
Macro
for
mitigating
against
speculative
execution
beyond
ERET
.
Uses
the
*
If
possible
use
S
peculation
B
arrier
instruction
defined
in
ARMv8
.5
*
s
peculation
b
arrier
instruction
introduced
by
FEAT_SB
,
if
it
's enabled.
*/
*/
.
macro
exception_return
.
macro
exception_return
eret
eret
#if
ARM_ARCH_AT_LEAST(8, 5)
#if
ENABLE_FEAT_SB
sb
sb
#else
#else
dsb
nsh
dsb
nsh
...
...
include/arch/aarch64/asm_macros.S
View file @
9fa849d3
...
@@ -219,12 +219,12 @@
...
@@ -219,12 +219,12 @@
.
endm
.
endm
/
*
/
*
*
Macro
for
mitigating
against
speculative
execution
beyond
ERET
.
*
Macro
for
mitigating
against
speculative
execution
beyond
ERET
.
Uses
the
*
If
possible
use
S
peculation
B
arrier
instruction
defined
in
ARMv8
.5
*
s
peculation
b
arrier
instruction
introduced
by
FEAT_SB
,
if
it
's enabled.
*/
*/
.
macro
exception_return
.
macro
exception_return
eret
eret
#if
ARM_ARCH_AT_LEAST(8, 5)
#if
ENABLE_FEAT_SB
sb
sb
#else
#else
dsb
nsh
dsb
nsh
...
...
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