Support thread local storage

This commit is contained in:
Justine Tunney 2022-05-16 13:20:08 -07:00
parent 91ee2b19d4
commit 55de4ca6b5
197 changed files with 1483 additions and 874 deletions

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eoverflow:
.leafprologue
.profilable
mov EOVERFLOW(%rip),%eax
mov %eax,errno(%rip)
mov EOVERFLOW(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue