glibc/sysdeps/mach/hurd/i386/htl
Sergey Bugaev 70fd6b3b23 hurd: Fix setting up pthreads
On x86_64, we have to pass function arguments in registers, not on the
stack. We also have to align the stack pointer in a specific way. Since
sharing the logic with i386 does not bring much benefit, split the file
back into i386- and x86_64-specific versions, and fix the x86_64 version
to set up the thread properly.

Bonus: i386 keeps doing the extra RPC inside __thread_set_pcsptp to
fetch the state of the thread before setting it; but x86_64 no lnoger
does that.

Checked on x86_64-gnu and i686-gnu.

Fixes be6d002ca2
"hurd: Set up the basic tree for x86_64-gnu"

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230517191436.73636-9-bugaevc@gmail.com>
2023-05-17 23:02:08 +02:00
..
bits/types hurd 64bit: Fix pthread_t/thread_t type to long 2023-05-01 15:05:09 +02:00
Implies hurd: Set up the basic tree for x86_64-gnu 2023-02-12 16:12:06 +01:00
pt-machdep.c [hurd] Fix i686 build breakage caused by 4fedebc911 2023-02-17 11:21:28 +01:00
pt-setup.c hurd: Fix setting up pthreads 2023-05-17 23:02:08 +02:00