ArmLib: Added Instruction Synchronization Barriers for PAN changes.

This commit is contained in:
Mikhail Krichanov 2024-10-01 13:54:44 +03:00
parent 48f5f4f667
commit 4968eac71c
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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