mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Fix stdio regression
This change fixes a nasty regression caused by
80b211e314
which deadlocked.
This change also causes MbedTLS to prefer the ChaCha ciphersuite on
older CPUs that don't have AES hardware instructions.
This commit is contained in:
parent
9208c83f7a
commit
6e52cba37a
14 changed files with 232 additions and 51 deletions
|
@ -23,7 +23,7 @@
|
|||
// @return byte in range 0..255, or -1 w/ errno
|
||||
// @see fgetc_unlocked()
|
||||
getchar:
|
||||
lea stdin(%rip),%rdi
|
||||
mov stdin(%rip),%rdi
|
||||
mov %rdi,%r11
|
||||
ezlea fgetc_unlocked,ax
|
||||
jmp stdio_unlock
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
// @return wide character or -1 on EOF or error
|
||||
// @see fgetwc_unlocked()
|
||||
getwchar:
|
||||
lea stdin(%rip),%rdi
|
||||
mov stdin(%rip),%rdi
|
||||
mov %rdi,%r11
|
||||
ezlea fgetwc_unlocked,ax
|
||||
jmp stdio_unlock
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
// @return c (as unsigned char) if written or -1 w/ errno
|
||||
// @see fputc_unlocked()
|
||||
putchar:
|
||||
lea stdout(%rip),%rsi
|
||||
mov stdout(%rip),%rsi
|
||||
mov %rsi,%r11
|
||||
ezlea fputc_unlocked,ax
|
||||
jmp stdio_unlock
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
// @return wc if written or -1 w/ errno
|
||||
// @see fputwc_unlocked()
|
||||
putwchar:
|
||||
lea stdout(%rip),%rsi
|
||||
mov stdout(%rip),%rsi
|
||||
mov %rsi,%r11
|
||||
ezlea fputwc_unlocked,ax
|
||||
jmp stdio_unlock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue