arm: sevl_wfe.S example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-01-14 00:00:00 +00:00
parent cc1d34f862
commit 270421ccc3
2 changed files with 15 additions and 0 deletions

View 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