Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
74eaf266
Commit
74eaf266
authored
5 years ago
by
John Tsichritzis
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "FVP: Remove GIC initialisation from secondary core cold boot" into integration
parents
0f95565c
9c29e5f7
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/arm/board/fvp/aarch64/fvp_helpers.S
+1
-38
plat/arm/board/fvp/aarch64/fvp_helpers.S
with
1 addition
and
38 deletions
+1
-38
plat/arm/board/fvp/aarch64/fvp_helpers.S
View file @
74eaf266
/*
*
Copyright
(
c
)
2013
-
201
7
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2013
-
201
9
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
...
...
@@ -16,14 +16,6 @@
.
globl
plat_is_my_cpu_primary
.
globl
plat_arm_calc_core_pos
.
macro
fvp_choose_gicmmap
param1
,
param2
,
x_tmp
,
w_tmp
,
res
mov_imm
\
x_tmp
,
V2M_SYSREGS_BASE
+
V2M_SYS_ID
ldr
\
w_tmp
,
[
\
x_tmp
]
ubfx
\
w_tmp
,
\
w_tmp
,
#
V2M_SYS_ID_BLD_SHIFT
,
#
V2M_SYS_ID_BLD_LENGTH
cmp
\
w_tmp
,
#
BLD_GIC_VE_MMAP
csel
\
res
,
\
param1
,
\
param2
,
eq
.
endm
/
*
-----------------------------------------------------
*
void
plat_secondary_cold_boot_setup
(
void
)
;
*
...
...
@@ -49,35 +41,6 @@ func plat_secondary_cold_boot_setup
mov_imm
x1
,
PWRC_BASE
str
w0
,
[
x1
,
#
PPOFFR_OFF
]
/
*
---------------------------------------------
*
Disable
GIC
bypass
as
well
*
---------------------------------------------
*/
/
*
Check
for
GICv3
system
register
access
*/
mrs
x0
,
id_aa64pfr0_el1
ubfx
x0
,
x0
,
#
ID_AA64PFR0_GIC_SHIFT
,
#
ID_AA64PFR0_GIC_WIDTH
cmp
x0
,
#
1
b.ne
gicv2_bypass_disable
/
*
Check
for
SRE
enable
*/
mrs
x1
,
ICC_SRE_EL3
tst
x1
,
#
ICC_SRE_SRE_BIT
b.eq
gicv2_bypass_disable
mrs
x2
,
ICC_SRE_EL3
orr
x2
,
x2
,
#(
ICC_SRE_DIB_BIT
|
ICC_SRE_DFB_BIT
)
msr
ICC_SRE_EL3
,
x2
b
secondary_cold_boot_wait
gicv2_bypass_disable
:
mov_imm
x0
,
VE_GICC_BASE
mov_imm
x1
,
BASE_GICC_BASE
fvp_choose_gicmmap
x0
,
x1
,
x2
,
w2
,
x1
mov
w0
,
#(
IRQ_BYP_DIS_GRP1
|
FIQ_BYP_DIS_GRP1
)
orr
w0
,
w0
,
#(
IRQ_BYP_DIS_GRP0
|
FIQ_BYP_DIS_GRP0
)
str
w0
,
[
x1
,
#
GICC_CTLR
]
secondary_cold_boot_wait
:
/
*
---------------------------------------------
*
There
is
no
sane
reason
to
come
out
of
this
*
wfi
so
panic
if
we
do
.
This
cpu
will
be
pow
-
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help