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
-9
View File
@@ -1,9 +0,0 @@
#include "syscall.h"
int __set_thread_area(unsigned long *desc)
{
if (syscall1(__NR_set_thread_area, (long)desc) < 0)
return -1;
__asm__ __volatile__ ( "movw %w0,%%gs" : : "r"(desc[0]*8+3) );
return 0;
}