mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 20:28:30 +00:00
Perform more low-level code cleanup
This commit is contained in:
parent
c32e2d4486
commit
2d17ab016c
42 changed files with 977 additions and 265 deletions
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_arch_prctl,0xfff0a50a5ffff09e,globl,hidden
|
||||
.scall sys_arch_prctl,0x0a50a50a5ffff09e,globl,hidden
|
||||
|
|
2
libc/sysv/calls/sys_enable_tls.s
Normal file
2
libc/sysv/calls/sys_enable_tls.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_enable_tls,0x13d1490a5300309e,globl,hidden
|
12
libc/sysv/consts/uc.h
Normal file
12
libc/sysv/consts/uc.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_UC_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_UC_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define UC_FP_XSTATE 1
|
||||
#define UC_SIGCONTEXT_SS 2
|
||||
#define UC_STRICT_RESTORE_SS 4
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_UC_H_ */
|
|
@ -212,7 +212,8 @@ scall modify_ldt 0xfffffffffffff09a globl
|
|||
scall sys_pivot_root 0xfffffffffffff09b globl hidden
|
||||
scall _sysctl 0xfffffffffffff09c globl
|
||||
#scall prctl 0xfffffffffffff09d globl # wrapped manually
|
||||
scall sys_arch_prctl 0xfff0a50a5ffff09e globl hidden # sysarch() on bsd
|
||||
scall sys_arch_prctl 0x0a50a50a5ffff09e globl hidden # sysarch() on bsd
|
||||
scall sys_enable_tls 0x13d1490a5300309e globl hidden # arch_prctl on linux, sysarch on freebsd, _lwp_setprivate on netbsd, __set_tcb on openbsd, _lwp_setprivate on netbsd, thread_fast_set_cthread_self on xnu
|
||||
scall adjtimex 0xfffffffffffff09f globl
|
||||
scall swapon 0xffffff05520550a7 globl
|
||||
scall swapoff 0xffffff1a8ffff0a8 globl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue