cosmopolitan/libc/sysv/errfuns/esrmnt.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
esrmnt: .leafprologue
2022-05-16 20:20:08 +00:00
mov ESRMNT(%rip),%ecx
.errno
mov %ecx,(%rax)
2020-06-15 14:18:57 +00:00
push $-1
pop %rax
.leafepilogue
.endfn esrmnt,globl,hidden