mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
13 lines
260 B
ArmAsm
13 lines
260 B
ArmAsm
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-ldrh-and-ldrb-instructions */
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
ldr r0, =myvar
|
|
mov r1, 0x0
|
|
ldrh r1, [r0]
|
|
LKMC_ASSERT_EQ(r1, =0x00005678)
|
|
LKMC_EPILOGUE
|
|
myvar:
|
|
.word 0x12345678
|