MdePkg/BaseLib 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:
committed by
mergify[bot]
parent
e504b3917e
commit
c4c7fb2174
@@ -33,6 +33,7 @@ GCC_ASM_EXPORT(GetInterruptState)
|
||||
# );
|
||||
#
|
||||
ASM_PFX(GetInterruptState):
|
||||
AARCH64_BTI(c)
|
||||
mrs x0, daif
|
||||
tst x0, #DAIF_RD_IRQ_BIT // Check IRQ mask; set Z=1 if clear/unmasked
|
||||
cset w0, eq // if Z=1 (eq) return 1, else 0
|
||||
|
Reference in New Issue
Block a user