mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
15 lines
210 B
ArmAsm
15 lines
210 B
ArmAsm
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bl */
|
|
|
|
#include "common.h"
|
|
|
|
ENTRY
|
|
mov r0, 1
|
|
bl inc
|
|
ASSERT_EQ(r0, 2)
|
|
EXIT
|
|
|
|
/* void inc(int *i) { (*i)++ } */
|
|
inc:
|
|
add r0, 1
|
|
bx lr
|