cosmopolitan/libc/sysv/errfuns/el2nsync.S

18 lines
308 B
ArmAsm
Raw Normal View History

#include "libc/macros.internal.h"
2020-06-15 14:18:57 +00:00
.text.unlikely
el2nsync:
#ifdef __x86_64__
2020-06-15 14:18:57 +00:00
.leafprologue
.profilable
2022-05-16 20:20:08 +00:00
mov EL2NSYNC(%rip),%ecx
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EL2NSYNC
ldr w0,[x1,#:lo12:EL2NSYNC]
b __errfun
#else
#error "unsupported architecture"
#endif
2020-06-15 14:18:57 +00:00
.endfn el2nsync,globl,hidden