mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
14 lines
180 B
ArmAsm
14 lines
180 B
ArmAsm
# # bswap
|
|
|
|
# Little endian <=> big endian.
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
|
|
mov $0x12345678, %eax
|
|
bswapl %eax
|
|
LKMC_ASSERT_EQ_32(%eax, $0x78563412)
|
|
|
|
LKMC_EPILOGUE
|