6 #include <sys/syscall.h>
8 #ifndef SYS_set_thread_area
9 #define SYS_set_thread_area 243
17 ret
= syscall (SYS_set_thread_area
, 0xf0);
18 if (ret
!= -1 || errno
!= EINVAL
) {
19 perror ("Invalid thread area accepted:");
23 ret
= syscall (SYS_set_thread_area
, 0xeddeed00);
25 perror ("Valid thread area not accepted: ");
29 asm ("move $pid,%0" : "=r" (tp
));
32 if (tp
!= 0xeddeed00) {