Files
linux-kernel-module-cheat/userland/arch/aarch64/adrp.S
Ciro Santilli 六四事件 法轮功 b3874cc72b asm: make all text section labels .L local
To help with backtraces if we ever fix them due to the lkmc_asm_main_after_prologue debacle.
2019-06-16 12:28:53 +01:00

14 lines
291 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-adr-instruction */
#include <lkmc.h>
LKMC_PROLOGUE
adrp x0, .Llabel
adr x1, .Llabel
.Llabel:
/* Clear the lower 12 bits. */
bic x1, x1, 0xFF
bic x1, x1, 0xF00
LKMC_ASSERT_EQ_REG(x0, x1)
LKMC_EPILOGUE