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()
480 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base()
539 unsigned long gs, base; in test_ptrace_write_gsbase() local
540 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase()
543 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
545 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
554 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
563 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
565 printf("[FAIL]\tGS changed to %lx\n", gs); in test_ptrace_write_gsbase()
575 if (gs == 0) in test_ptrace_write_gsbase()