2021-02-28 23:42:35 -08:00
|
|
|
#include "libc/macros.internal.h"
|
2020-06-15 07:18:57 -07:00
|
|
|
.text.unlikely
|
|
|
|
|
|
|
|
enotrecoverable:
|
2023-05-09 02:35:05 -07:00
|
|
|
#ifdef __x86_64__
|
2020-06-15 07:18:57 -07:00
|
|
|
.leafprologue
|
2022-05-27 13:25:46 -07:00
|
|
|
.profilable
|
2022-05-16 13:20:08 -07:00
|
|
|
mov ENOTRECOVERABLE(%rip),%ecx
|
2022-05-27 13:25:46 -07:00
|
|
|
jmp __errfun
|
2023-05-09 02:35:05 -07:00
|
|
|
#elif defined(__aarch64__)
|
|
|
|
adrp x1,ENOTRECOVERABLE
|
|
|
|
ldr w0,[x1,#:lo12:ENOTRECOVERABLE]
|
|
|
|
b __errfun
|
|
|
|
#else
|
|
|
|
#error "unsupported architecture"
|
|
|
|
#endif
|
2020-06-15 07:18:57 -07:00
|
|
|
.endfn enotrecoverable,globl,hidden
|