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
bf9e90c9
Unverified
Commit
bf9e90c9
authored
Mar 05, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Mar 05, 2019
Browse files
Merge pull request #1855 from dp-arm/dp/ssbs
Ensure proper ID register is checked for feature detection
parents
e70ce64c
6ecfda52
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/arch/aarch64/arch_helpers.h
View file @
bf9e90c9
...
...
@@ -208,6 +208,7 @@ DEFINE_SYSREG_RW_FUNCS(par_el1)
DEFINE_SYSREG_READ_FUNC
(
id_pfr1_el1
)
DEFINE_SYSREG_READ_FUNC
(
id_aa64isar1_el1
)
DEFINE_SYSREG_READ_FUNC
(
id_aa64pfr0_el1
)
DEFINE_SYSREG_READ_FUNC
(
id_aa64pfr1_el1
)
DEFINE_SYSREG_READ_FUNC
(
id_aa64dfr0_el1
)
DEFINE_SYSREG_READ_FUNC
(
id_afr0_el1
)
DEFINE_SYSREG_READ_FUNC
(
CurrentEl
)
...
...
services/arm_arch_svc/arm_arch_svc_setup.c
View file @
bf9e90c9
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -41,7 +41,7 @@ static int32_t smccc_arch_features(u_register_t arg)
* PE implements architectural Speculation Store Bypass Safe
* (SSBS) feature.
*/
ssbs
=
(
read_id_aa64pfr
0
_el1
()
>>
ID_AA64PFR1_EL1_SSBS_SHIFT
)
&
ssbs
=
(
read_id_aa64pfr
1
_el1
()
>>
ID_AA64PFR1_EL1_SSBS_SHIFT
)
&
ID_AA64PFR1_EL1_SSBS_MASK
;
/*
...
...
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