mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
arm: sevl_wfe.S example
This commit is contained in:
14
userland/arch/aarch64/freestanding/linux/sevl_wfe.S
Normal file
14
userland/arch/aarch64/freestanding/linux/sevl_wfe.S
Normal file
@@ -0,0 +1,14 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user