Apply fixup to cthread initialization (#301)

Cosmopolitan Threads are currently Linux-only (with some NetBSD
and Windows support too!). This change ensures we only initialize
the high-level threading runtime when Cosmopolitan Threads are used.
This commit is contained in:
Justine Tunney 2021-10-25 16:22:10 -07:00
parent 45a7435788
commit 91d783352a
3 changed files with 13 additions and 9 deletions

View file

@ -45,7 +45,6 @@ cosmo: push %rbp
pop %rax
#endif
call _init
call _main_thread_init # FIXME: use .init.start macro
ezlea __init_array_start,ax # static ctors in forward order
.weak __init_array_start # could be called multiple times
ezlea __init_array_end,cx # idempotency recommended