Files
linux-kernel-module-cheat/baremetal/arch/aarch64/no_bootloader/semihost_exit.S
Ciro Santilli 六四事件 法轮功 de05e91689 baremetal: arm multicore attempt
2018-11-22 00:00:01 +00:00

13 lines
248 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#semihosting */
.global mystart
mystart:
mov x1, #0x26
movk x1, #2, lsl #16
str x1, [sp,#0]
mov x0, #0
str x0, [sp,#8]
mov x1, sp
mov w0, #0x18
hlt 0xf000