Skip to content

Commit 9db043d

Browse files
murzinvRussell King
authored andcommitted
ARM: 8848/1: virt: Align GIC version check with arm64 counterpart
arm64 has got relaxation on GIC version check at early boot stage due to update of the GIC architecture let's align ARM with that. To help backports (even though the code was correct at the time of writing) Fixes: e59941b ("ARM: 8527/1: virt: enable GICv3 system registers") Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent b7e8c93 commit 9db043d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/kernel/hyp-stub.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ ARM_BE8(orr r7, r7, #(1 << 25)) @ HSCTLR.EE
180180
@ Check whether GICv3 system registers are available
181181
mrc p15, 0, r7, c0, c1, 1 @ ID_PFR1
182182
ubfx r7, r7, #28, #4
183-
cmp r7, #1
184-
bne 2f
183+
teq r7, #0
184+
beq 2f
185185

186186
@ Enable system register accesses
187187
mrc p15, 4, r7, c12, c9, 5 @ ICC_HSRE

0 commit comments

Comments
 (0)