Lines Matching refs:gs
275 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs() local
276 asm volatile ("mov %0, %%gs" : : "rm" (gs)); in load_gs()
277 return gs; in load_gs()
454 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base()
513 unsigned long gs, base; in test_ptrace_write_gsbase() local
514 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase()
517 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
519 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
528 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
537 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
539 printf("[FAIL]\tGS changed to %lx\n", gs); in test_ptrace_write_gsbase()
549 if (gs == 0) in test_ptrace_write_gsbase()