mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
11 lines
232 B
ArmAsm
11 lines
232 B
ArmAsm
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-bfi-instruction */
|
|
|
|
#include "common.h"
|
|
|
|
LKMC_ENTRY
|
|
ldr r0, =0x11223344
|
|
ldr r1, =0xFFFFFFFF
|
|
bfi r1, r0, 8, 16
|
|
LKMC_ASSERT_EQ(r1, 0xFF3344FF)
|
|
LKMC_EXIT
|