cosmopolitan/libc/sysv/errfuns/el2hlt.S

14 lines
220 B
ArmAsm
Raw Normal View History

#include "libc/macros.internal.h"
2020-06-15 14:18:57 +00:00
.text.unlikely
2022-05-16 20:20:08 +00:00
.section .privileged,"ax",@progbits
2020-06-15 14:18:57 +00:00
el2hlt: .leafprologue
2022-05-16 20:20:08 +00:00
mov EL2HLT(%rip),%ecx
.errno
mov %ecx,(%rax)
2020-06-15 14:18:57 +00:00
push $-1
pop %rax
.leafepilogue
.endfn el2hlt,globl,hidden