Files
linux-kernel-module-cheat/userland/arch/arm/ldrh.S
Ciro Santilli 六四事件 法轮功 5f935ee53d readme: verify all non-README links with asciidoctor/extract-header-ids and git grep
Fix all the ~30 failures it found!
2019-06-09 00:00:00 +00:00

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