Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/x86/
Dfsgsbase.c301 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()
[all …]
Dfsgsbase_restore.c194 printf("\tChild GS=0x%lx, GSBASE=0x%lx\n", (unsigned long)regs.gs, (unsigned long)regs.gs_base); in main()
Dsigreturn.c301 unsigned short cs, gs, fs, ss; member
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h215 uint16_t gs; in get_gs() local
218 : /* output */ [gs]"=rm"(gs)); in get_gs()
219 return gs; in get_gs()
Dsvm.h170 struct vmcb_seg gs; member
/tools/arch/x86/include/uapi/asm/
Dkvm.h153 struct kvm_segment cs, ds, es, fs, gs, ss; member
164 struct kvm_segment cs, ds, es, fs, gs, ss; member
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c116 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump()
1279 kvm_seg_set_kernel_data_64bit(NULL, DEFAULT_DATA_SELECTOR, &sregs.gs); in vcpu_init_descriptor_tables()
/tools/testing/selftests/rseq/
Drseq-x86.h636 #define RSEQ_ASM_TP_SEGMENT %%gs