finish unifying thread register handling in preparation for porting
This commit is contained in:
parent
0b2006c8fe
commit
7b2dd2235d
7 changed files with 34 additions and 53 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue