MdePkg/BaseMemoryLibOptDxe 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
c4c7fb2174
commit
0ee255f50a
@@ -29,29 +29,34 @@
|
||||
|
||||
ASM_GLOBAL ASM_PFX(InternalMemSetMem16)
|
||||
ASM_PFX(InternalMemSetMem16):
|
||||
AARCH64_BTI(c)
|
||||
dup v0.8H, valw
|
||||
lsl count, count, #1
|
||||
b 0f
|
||||
|
||||
ASM_GLOBAL ASM_PFX(InternalMemSetMem32)
|
||||
ASM_PFX(InternalMemSetMem32):
|
||||
AARCH64_BTI(c)
|
||||
dup v0.4S, valw
|
||||
lsl count, count, #2
|
||||
b 0f
|
||||
|
||||
ASM_GLOBAL ASM_PFX(InternalMemSetMem64)
|
||||
ASM_PFX(InternalMemSetMem64):
|
||||
AARCH64_BTI(c)
|
||||
dup v0.2D, val
|
||||
lsl count, count, #3
|
||||
b 0f
|
||||
|
||||
ASM_GLOBAL ASM_PFX(InternalMemZeroMem)
|
||||
ASM_PFX(InternalMemZeroMem):
|
||||
AARCH64_BTI(c)
|
||||
movi v0.16B, #0
|
||||
b 0f
|
||||
|
||||
ASM_GLOBAL ASM_PFX(InternalMemSetMem)
|
||||
ASM_PFX(InternalMemSetMem):
|
||||
AARCH64_BTI(c)
|
||||
dup v0.16B, valw
|
||||
0: add dstend, dstin, count
|
||||
mov val, v0.D[0]
|
||||
|
Reference in New Issue
Block a user