mirror of https://github.com/acidanthera/audk.git
MdePkg/BaseCpuLib AARCH64: Make asm files BTI compatible
Add the BTI instructions and the associated note to make the AArch64 asm objects compatible with BTI enforcement. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com>
This commit is contained in:
parent
6521e4d202
commit
c5cd360277
|
@ -26,6 +26,7 @@ GCC_ASM_EXPORT(CpuFlushTlb)
|
||||||
# )#
|
# )#
|
||||||
#
|
#
|
||||||
ASM_PFX(CpuFlushTlb):
|
ASM_PFX(CpuFlushTlb):
|
||||||
|
AARCH64_BTI(c)
|
||||||
tlbi vmalle1 // Invalidate Inst TLB and Data TLB
|
tlbi vmalle1 // Invalidate Inst TLB and Data TLB
|
||||||
dsb sy
|
dsb sy
|
||||||
isb
|
isb
|
||||||
|
|
|
@ -29,5 +29,6 @@ GCC_ASM_EXPORT(CpuSleep)
|
||||||
#
|
#
|
||||||
|
|
||||||
ASM_PFX(CpuSleep):
|
ASM_PFX(CpuSleep):
|
||||||
|
AARCH64_BTI(c)
|
||||||
wfi
|
wfi
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in New Issue