mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
ArmLib: Added Instruction Synchronization Barriers for PAN changes.
This commit is contained in:
parent
48f5f4f667
commit
4968eac71c
@ -402,10 +402,12 @@ ASM_FUNC(ArmReadIdAA64Pfr1)
|
||||
|
||||
ASM_FUNC(ArmSetPan)
|
||||
msr pan, #1
|
||||
isb
|
||||
ret
|
||||
|
||||
ASM_FUNC(ArmClearPan)
|
||||
msr pan, #0
|
||||
isb
|
||||
ret
|
||||
|
||||
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
||||
|
@ -154,10 +154,12 @@ ASM_FUNC (ArmGetPhysicalAddressBits)
|
||||
|
||||
ASM_FUNC(ArmSetPan)
|
||||
setpan #1
|
||||
isb
|
||||
bx LR
|
||||
|
||||
ASM_FUNC(ArmClearPan)
|
||||
setpan #0
|
||||
isb
|
||||
bx LR
|
||||
|
||||
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
||||
|
Loading…
x
Reference in New Issue
Block a user