Files
2019-07-07 00:00:01 +00:00

25 lines
449 B
ArmAsm

/* https://cirosantilli.com/linux-kernel-module-cheat#gnu-gas-assembler-immediates */
#include <lkmc.h>
LKMC_PROLOGUE
/* This is the default. We hack it in common.h however. */
.syntax divided
/* These fail. */
#if 0
mov r0, 1
mov r0, 0x1
#endif
mov r0, #1
mov r0, #0x1
mov r0, $1
mov r0, $0x1
.syntax unified
mov r0, 1
mov r0, 0x1
mov r0, 1
mov r0, 0x1
mov r0, $1
mov r0, $0x1
LKMC_EPILOGUE