mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
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:
parent
45a7435788
commit
91d783352a
3 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue