Files
linux-kernel-module-cheat/userland/arch/x86_64/bswap.S
2019-07-07 00:00:01 +00:00

12 lines
221 B
ArmAsm

/* https://cirosantilli.com/linux-kernel-module-cheat#x86-data-transfer-instructions */
#include <lkmc.h>
LKMC_PROLOGUE
mov $0x12345678, %eax
bswapl %eax
LKMC_ASSERT_EQ_32(%eax, $0x78563412)
LKMC_EPILOGUE