Home | History | Annotate | Download | only in amd64-solaris
      1 /* Basic syscall test for Solaris/amd64 specific syscalls. */
      2 
      3 #include "scalar.h"
      4 
      5 #include <sys/lwp.h>
      6 
      7 int main(void)
      8 {
      9    /* Uninitialised, but we know px[0] is 0x0. */
     10    long *px = malloc(sizeof(long));
     11    x0 = px[0];
     12 
     13    /* SYS_lwp_private           166 */
     14    GO(SYS_lwp_private, "3s 1m");
     15    SY(SYS_lwp_private, x0 + _LWP_GETPRIVATE, x0 + _LWP_FSBASE, x0); FAIL;
     16 
     17    return 0;
     18 }
     19