Lines Matching refs:gs
301 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs() local
302 asm volatile ("mov %0, %%gs" : : "rm" (gs)); in load_gs()
303 return gs; in load_gs()
472 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base()
531 unsigned long gs, base; in test_ptrace_write_gsbase() local
532 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase()
535 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
537 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
546 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
555 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
557 printf("[FAIL]\tGS changed to %lx\n", gs); in test_ptrace_write_gsbase()
567 if (gs == 0) in test_ptrace_write_gsbase()