match glibc/lsb cancellation abi on i386
authorRich Felker <dalias@aerifal.cx>
Sat, 26 Mar 2011 02:13:57 +0000 (22:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 26 Mar 2011 02:13:57 +0000 (22:13 -0400)
commitea343364a719add2cd8adf8a50c15bb5f9400dd8
tree36056bd0bd1c4c49118b6b3366db6432f7c80fc1
parent92b52b70e8c0786c95cb73a691e1f6e89a73be46
match glibc/lsb cancellation abi on i386

glibc made the ridiculous choice to use pass-by-register calling
convention for these functions, which is impossible to duplicate
directly on non-gcc compilers. instead, we use ugly asm to wrap and
convert the calling convention. presumably this works with every
compiler anyone could potentially want to use.
arch/i386/bits/pthread.h
include/pthread.h
src/thread/cancellation.c
src/thread/cancellation2.c [new file with mode: 0644]
src/thread/cancellation3.c [new file with mode: 0644]
src/thread/i386/cancellation2.s [new file with mode: 0644]
src/thread/i386/cancellation3.s [new file with mode: 0644]
src/thread/pthread_create.c