1 /* Check that the syscall set_thread_area is supported and does the right thing.
6 #include <sys/syscall.h>
11 #ifndef SYS_set_thread_area
12 #define SYS_set_thread_area 243
19 /* Check the error check that the low 8 bits must be 0. */
20 ret = syscall (SYS_set_thread_area, 0xfeeb1ff0);
21 if (ret != -1 || errno != EINVAL)
27 ret = syscall (SYS_set_thread_area, 0xcafebe00);
34 /* Check that we got the right result. */
36 asm ("move $pid,%0\n\tclear.b %0" : "=rm" (ret));
38 asm ("move $brp,%0" : "=rm" (ret));
41 if (ret != 0xcafebe00)