Files
linux-kernel-module-cheat/userland/arch/aarch64/cbz.S
Ciro Santilli 六四事件 法轮功 72200dee4e userland: scope every header identifier with lkmc_
2019-05-21 00:00:01 +00:00

20 lines
270 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-cbz-instruction */
#include "common.h"
LKMC_ENTRY
/* Branch. */
mov x0, 0x0
cbz x0, ok
LKMC_FAIL
ok:
/* Don't branch. */
mov x0, 0x1
cbz x0, ko
LKMC_EXIT
ko:
LKMC_FAIL