arm WFE: add some userland examples

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-16 00:00:00 +00:00
parent 10946a7d80
commit 89a981aaf2
5 changed files with 119 additions and 2 deletions

View 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

View File

@@ -0,0 +1,13 @@
/* https://cirosantilli.com/linux-kernel-module-cheat#arm-wfe-and-sev-instructions */
.text
.global _start
_start:
asm_main_after_prologue:
wfe
wfe
/* exit */
mov x0, 0
mov x8, 93
svc 0