ArmLib: Added Instruction Synchronization Barriers for PAN changes.

This commit is contained in:
Mikhail Krichanov 2024-10-01 13:54:44 +03:00
parent 2497ca5c32
commit 51e767463a
2 changed files with 4 additions and 0 deletions

View File

@ -528,10 +528,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

View File

@ -171,10 +171,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