mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix i386 __set_thread_area fallback
this code is only needed for pre-2.6 kernels, which are not actually supported anyway, and was never tested. the fallback path using SYS_modify_ldt failed to clear the upper bits of %eax (all ones due to SYS_set_thread_area's return value being an error) before modifying %al to attempt a new syscall.
This commit is contained in:
parent
cf27184d00
commit
0b06402193
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ __set_thread_area:
|
|||
ret
|
||||
2:
|
||||
mov %ebx,%ecx
|
||||
xor %eax,%eax
|
||||
xor %ebx,%ebx
|
||||
xor %edx,%edx
|
||||
mov %ebx,(%esp)
|
||||
|
|
Loading…
Add table
Reference in a new issue