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

@ -53,7 +53,7 @@ vfork:
call __stracef
#endif /* SYSDEBUG */
mov __NR_vfork(%rip),%eax
mov errno(%rip),%r8d # avoid question of @vforksafe errno
mov __errno(%rip),%r8d # avoid question of @vforksafe errno
pop %rsi # saves return address in a register
#if SupportsBsd()
testb IsBsd()
@ -65,7 +65,7 @@ vfork:
cmp $-4095,%eax
jae systemfive_error
#endif
0: mov %r8d,errno(%rip)
0: mov %r8d,__errno(%rip)
ezlea __vforked,di
test %eax,%eax
jz 1f