mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 10:18:31 +00:00
Remove IMAGE_BASE_VIRTUAL
This commit is contained in:
parent
8a0008d985
commit
20c77338e6
65 changed files with 10 additions and 286 deletions
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_CALLS_STATE_INTERNAL_H_
|
||||
#include "libc/intrin/nopl.internal.h"
|
||||
#include "libc/thread/thread.h"
|
||||
#include "libc/thread/tls.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
@ -21,22 +20,6 @@ void __sig_lock(void);
|
|||
void __sig_unlock(void);
|
||||
void __sig_funlock(void);
|
||||
|
||||
#ifdef _NOPL0
|
||||
#define __fds_lock() _NOPL0("__threadcalls", __fds_lock)
|
||||
#define __fds_unlock() _NOPL0("__threadcalls", __fds_unlock)
|
||||
#else
|
||||
#define __fds_lock() (__threaded ? __fds_lock() : 0)
|
||||
#define __fds_unlock() (__threaded ? __fds_unlock() : 0)
|
||||
#endif
|
||||
|
||||
#ifdef _NOPL0
|
||||
#define __sig_lock() _NOPL0("__threadcalls", __sig_lock)
|
||||
#define __sig_unlock() _NOPL0("__threadcalls", __sig_unlock)
|
||||
#else
|
||||
#define __sig_lock() (__threaded ? __sig_lock() : 0)
|
||||
#define __sig_unlock() (__threaded ? __sig_unlock() : 0)
|
||||
#endif
|
||||
|
||||
#define __vforked (__tls_enabled && (__get_tls()->tib_flags & TIB_FLAG_VFORKED))
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue