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
dec806be
Commit
dec806be
authored
9 years ago
by
danh-arm
Browse files
Options
Download
Plain Diff
Merge pull request #381 from vikramkanigiri/hl/gic_v3
Remove EL2/EL1 GICv3 register updates
parents
f81bdb6e
889fce42
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
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
v1.2
v1.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
drivers/arm/gic/arm_gic.c
+2
-28
drivers/arm/gic/arm_gic.c
with
2 additions
and
28 deletions
+2
-28
drivers/arm/gic/arm_gic.c
View file @
dec806be
...
...
@@ -62,7 +62,7 @@ static unsigned int g_num_irqs;
******************************************************************************/
static
void
gicv3_cpuif_setup
(
void
)
{
unsigned
int
scr_val
,
val
;
unsigned
int
val
;
uintptr_t
base
;
/*
...
...
@@ -93,35 +93,9 @@ static void gicv3_cpuif_setup(void)
while
(
val
&
WAKER_CA
)
val
=
gicr_read_waker
(
base
);
/*
* We need to set SCR_EL3.NS in order to see GICv3 non-secure state.
* Restore SCR_EL3.NS again before exit.
*/
scr_val
=
read_scr
();
write_scr
(
scr_val
|
SCR_NS_BIT
);
isb
();
/* ensure NS=1 takes effect before accessing ICC_SRE_EL2 */
/*
* By default EL2 and NS-EL1 software should be able to enable GICv3
* System register access without any configuration at EL3. But it turns
* out that GICC PMR as set in GICv2 mode does not affect GICv3 mode. So
* we need to set it here again. In order to do that we need to enable
* register access. We leave it enabled as it should be fine and might
* prevent problems with later software trying to access GIC System
* Registers.
*/
val
=
read_icc_sre_el3
();
write_icc_sre_el3
(
val
|
ICC_SRE_EN
|
ICC_SRE_SRE
);
val
=
read_icc_sre_el2
();
write_icc_sre_el2
(
val
|
ICC_SRE_EN
|
ICC_SRE_SRE
);
write_icc_pmr_el1
(
GIC_PRI_MASK
);
isb
();
/* commit ICC_* changes before setting NS=0 */
/* Restore SCR_EL3 */
write_scr
(
scr_val
);
isb
();
/* ensure NS=0 takes effect immediately */
isb
();
}
/*******************************************************************************
...
...
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