finish unifying thread register handling in preparation for porting

This commit is contained in:
Rich Felker
2011-02-15 03:56:52 -05:00
parent 0b2006c8fe
commit 7b2dd2235d
7 changed files with 34 additions and 53 deletions
+2 -8
View File
@@ -38,19 +38,13 @@ struct pthread {
pthread_attr_t attr;
};
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ ("movl %%gs:0,%0" : "=r" (self) );
return self;
}
#include "pthread_arch.h"
#define SIGCANCEL 32
#define SIGSYSCALL 33
#define SIGTIMER 32 /* ?? */
int __set_thread_area(unsigned long *);
int __set_pthread_self(void *);
int __set_thread_area(void *);
int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
int __libc_sigprocmask(int, const sigset_t *, sigset_t *);
void __lock(volatile int *);