mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 13:24:27 +01:00
arm WFE: add some userland examples
This commit is contained in:
12
userland/arch/aarch64/freestanding/linux/wfe.S
Normal file
12
userland/arch/aarch64/freestanding/linux/wfe.S
Normal file
@@ -0,0 +1,12 @@
|
||||
/* https://cirosantilli.com/linux-kernel-module-cheat#arm-wfe-and-sev-instructions */
|
||||
|
||||
.text
|
||||
.global _start
|
||||
_start:
|
||||
asm_main_after_prologue:
|
||||
wfe
|
||||
|
||||
/* exit */
|
||||
mov x0, 0
|
||||
mov x8, 93
|
||||
svc 0
|
||||
Reference in New Issue
Block a user