mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Fix bugs with recent change
This change makes further effort towards improving our poll() implementation on the New Technology. The stdin worker didn't work out so well for Python so it's not being used for now. System call tracing with the --strace flag should now be less noisy now on Windows unless you modify the strace.internal.h defines to turn on some optional ones that are most useful for debugging the system call wrappers.
This commit is contained in:
parent
933411ba99
commit
dc0ea6640e
127 changed files with 1354 additions and 866 deletions
|
@ -149,29 +149,6 @@
|
|||
pop \dest
|
||||
.endm
|
||||
|
||||
// Loads address of linktime mergeable string literal into register.
|
||||
.macro getstr text:req reg64:req reg32 regsz64 regsz32 bias=0
|
||||
.section .rodata.str1.1,"aSM",@progbits,1
|
||||
.type .Lstr\@,@object
|
||||
.Lstr\@: .asciz "\text"
|
||||
.Lstr\@.size = .-.Lstr\@ - 1
|
||||
.size .Lstr\@,.-.Lstr\@
|
||||
.previous
|
||||
plea .Lstr\@,\reg64,\reg32
|
||||
.ifnb \regsz64
|
||||
#ifdef __OPTIMIZE_SIZE__
|
||||
.if .Lstr\@.size + \bias < 128
|
||||
pushpop .Lstr\@.size,\regsz64
|
||||
.else
|
||||
mov $.Lstr\@.size,\regsz32
|
||||
.endif
|
||||
#else
|
||||
mov $.Lstr\@.size,\regsz32
|
||||
#endif
|
||||
.endif
|
||||
.endm
|
||||
|
||||
// TODO(jart): delete
|
||||
// Loads address of linktime mergeable string literal into register.
|
||||
.macro loadstr text:req reg:req regsz bias=0
|
||||
.section .rodata.str1.1,"aSM",@progbits,1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue