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

15 lines
241 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-bl-instruction */
#include "common.h"
LKMC_ENTRY
mov r0, 1
bl inc
LKMC_ASSERT_EQ(r0, 2)
LKMC_EXIT
/* void inc(int *i) { (*i)++ } */
inc:
add r0, 1
bx lr