Files
linux-kernel-module-cheat/userland/arch/aarch64/freestanding/linux/sevl_wfe.S
Ciro Santilli 六四事件 法轮功 270421ccc3 arm: sevl_wfe.S example
2020-01-14 00:00:00 +00:00

15 lines
304 B
ArmAsm

/* https://cirosantilli.com/linux-kernel-module-cheat#arm-wfe-and-sev-instructions */
.text
.global _start
_start:
asm_main_after_prologue:
sevl
/* Shoul not sleep due to above sevl. */
wfe
/* exit */
mov x0, 0 /* exit status */
mov x8, 93 /* syscall number */
svc 0