Skip to content

Commit 1abf363

Browse files
brooniectmarinas
authored andcommitted
KVM: arm64: Use symbolic definition for ISR_EL1.A
Now that we are generating ISR_EL1 we have acquired a constant for ISR_EL1.A, use it rather than the magic number we had been using in the KVM entry code. Suggested-by: Marc Zyngier <[email protected]> Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent df5f177 commit 1abf363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/hyp/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ alternative_else
171171
dsb sy // Synchronize against in-flight ld/st
172172
isb // Prevent an early read of side-effect free ISR
173173
mrs x2, isr_el1
174-
tbnz x2, #8, 2f // ISR_EL1.A
174+
tbnz x2, #ISR_EL1_A_SHIFT, 2f
175175
ret
176176
nop
177177
2:

0 commit comments

Comments
 (0)