mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
16 lines
297 B
ArmAsm
16 lines
297 B
ArmAsm
/* https://cirosantilli.com/linux-kernel-module-cheat#semihosting */
|
|
|
|
.global lkmc_start
|
|
lkmc_start:
|
|
mov x1, 0x26
|
|
movk x1, 2, lsl 16
|
|
ldr x2, =semihost_args
|
|
str x1, [x2, 0]
|
|
mov x0, 0
|
|
str x0, [x2, 8]
|
|
mov x1, x2
|
|
mov w0, 0x18
|
|
hlt 0xf000
|
|
semihost_args:
|
|
.skip 16
|