Files
linux-kernel-module-cheat/userland/arch/aarch64/adrp.S
2019-07-07 00:00:01 +00:00

14 lines
284 B
ArmAsm

/* https://cirosantilli.com/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