Searched refs:__KERNEL_CS (Results 1 - 41 of 41) sorted by relevance

/linux-4.4.14/arch/m32r/include/asm/
H A Dsegment.h4 #define __KERNEL_CS 0x10 macro
/linux-4.4.14/arch/x86/include/asm/
H A Ddesc.h59 gate->segment = __KERNEL_CS; pack_gate()
311 pack_gate(&s, GATE_INTERRUPT, (unsigned long)addr, 0, 0, __KERNEL_CS); set_nmi_gate()
368 __KERNEL_CS); \
375 0, 0, __KERNEL_CS); \
405 _set_gate(n, GATE_INTERRUPT, addr, 0x3, 0, __KERNEL_CS); set_system_intr_gate()
411 _set_gate(n, GATE_TRAP, addr, 0x3, 0, __KERNEL_CS); set_system_trap_gate()
417 _set_gate(n, GATE_TRAP, addr, 0, 0, __KERNEL_CS); set_trap_gate()
429 _set_gate(n, GATE_INTERRUPT, addr, 0, ist, __KERNEL_CS); set_intr_gate_ist()
435 _set_gate(n, GATE_INTERRUPT, addr, 0x3, ist, __KERNEL_CS); set_system_intr_gate_ist()
H A Dsegment.h120 #define __KERNEL_CS (GDT_ENTRY_KERNEL_CS*8) macro
202 #define __KERNEL_CS (GDT_ENTRY_KERNEL_CS*8) macro
H A Dperf_event.h255 (regs)->cs = __KERNEL_CS; \ get_ibs_caps()
H A Dptrace.h183 regs->cs == __KERNEL_CS) regs_get_register()
H A Dprocessor.h710 .sysenter_cs = __KERNEL_CS, \
/linux-4.4.14/arch/x86/boot/compressed/
H A Defi_thunk_64.S68 pushq $__KERNEL_CS
166 pushl $__KERNEL_CS
192 .quad 0x00af9a000000ffff /* __KERNEL_CS */
H A Dhead_64.S177 * the new gdt/idt that has __KERNEL_CS with CS.L = 1.
181 pushl $__KERNEL_CS
438 .quad 0x00af9a000000ffff /* __KERNEL_CS */
/linux-4.4.14/arch/x86/realmode/rm/
H A Dtrampoline_64.S116 * the new gdt/idt that has __KERNEL_CS with CS.L = 1.
118 ljmpl $__KERNEL_CS, $pa_startup_64
137 .quad 0x00af9b000000ffff # __KERNEL_CS
H A Dwakeup_asm.S22 pmode_cs: .short __KERNEL_CS
132 ljmpl $__KERNEL_CS, $pa_startup_32
/linux-4.4.14/arch/x86/kernel/acpi/
H A Dwakeup_32.S25 ljmp $(__KERNEL_CS), $1f
/linux-4.4.14/arch/x86/kernel/
H A Ddoublefault.c63 .cs = __KERNEL_CS,
H A Dhead_64.S293 pushq $__KERNEL_CS # set correct cs
309 pushq $__KERNEL_CS # set correct cs
373 cmpl $__KERNEL_CS,96(%rsp)
H A Dhead_32.S455 ljmp $(__KERNEL_CS),$1f
501 movl $(0x8E000000 + __KERNEL_CS),2(%edi)
508 movl $(__KERNEL_CS << 16),%eax
574 cmpl $(__KERNEL_CS),32(%esp)
H A Dmachine_kexec_32.c58 "\tljmp $"STR(__KERNEL_CS)",$1f\n" load_segments()
H A Dmcount_64.S213 movq $__KERNEL_CS, %rcx
H A Dkgdb.c173 gdb_regs[GDB_CS] = __KERNEL_CS; sleeping_thread_to_gdb_regs()
180 gdb_regs32[GDB_CS] = __KERNEL_CS; sleeping_thread_to_gdb_regs()
H A Dprocess_32.c154 childregs->cs = __KERNEL_CS | get_kernel_rpl(); copy_thread_tls()
H A Dprocess.c47 .ss1 = __KERNEL_CS,
H A Dprocess_64.c185 childregs->cs = __KERNEL_CS | get_kernel_rpl(); copy_thread_tls()
H A Dtraps.c329 regs->cs == __KERNEL_CS && do_double_fault()
H A Dvm86_32.c149 tsk->thread.sysenter_cs = __KERNEL_CS; save_v86_state()
/linux-4.4.14/arch/x86/platform/olpc/
H A Dxo1-wakeup.S48 ljmp $(__KERNEL_CS),$1f
H A Dolpc-xo1-pm.c36 } ofw_bios_entry = { 0xF0000 + PAGE_OFFSET, __KERNEL_CS };
/linux-4.4.14/arch/x86/platform/efi/
H A Defi_thunk_64.S143 pushl $__KERNEL_CS
/linux-4.4.14/arch/x86/kernel/kprobes/
H A Dopt.c157 regs->cs = __KERNEL_CS; optimized_callback()
159 regs->cs = __KERNEL_CS | get_kernel_rpl(); optimized_callback()
H A Dcore.c724 regs->cs = __KERNEL_CS; trampoline_handler()
726 regs->cs = __KERNEL_CS | get_kernel_rpl(); trampoline_handler()
/linux-4.4.14/arch/x86/pci/
H A Dpcbios.c82 } bios32_indirect __initdata = { 0, __KERNEL_CS };
123 } pci_indirect = { 0, __KERNEL_CS };
/linux-4.4.14/arch/x86/xen/
H A Dsmp.c431 ctxt->event_callback_cs = __KERNEL_CS; cpu_initialize_context()
432 ctxt->failsafe_callback_cs = __KERNEL_CS; cpu_initialize_context()
440 ctxt->user_regs.cs = __KERNEL_CS; cpu_initialize_context()
H A Denlighten.c1423 * GDT. The new GDT has __KERNEL_CS with CS.L = 1 xen_setup_gdt()
1431 : "=&r" (dummy) : "0" (__KERNEL_CS)); xen_setup_gdt()
H A Dsetup.c968 .address = XEN_CALLBACK(__KERNEL_CS, func), register_callback()
/linux-4.4.14/arch/x86/entry/
H A Dentry_32.S802 movl $__KERNEL_CS, 13*4(%esp)
959 cmpw $__KERNEL_CS, 4(%esp)
964 pushl $__KERNEL_CS
1027 cmpw $__KERNEL_CS, 16(%esp)
H A Dentry_64.S1363 pushq $__KERNEL_CS
1401 pushq $__KERNEL_CS /* CS */
/linux-4.4.14/drivers/lguest/x86/
H A Dcore.c283 wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0); lguest_arch_run_guest()
707 * __KERNEL_CS, and the "data", "extra" and "stack" segment registers lguest_arch_setup_regs()
714 regs->cs = __KERNEL_CS|GUEST_PL; lguest_arch_setup_regs()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dcommon.c1006 tss->x86_tss.ss1 = __KERNEL_CS; enable_sep_cpu()
1188 wrmsrl(MSR_STAR, ((u64)__USER32_CS)<<48 | ((u64)__KERNEL_CS)<<32); syscall_init()
1199 wrmsrl_safe(MSR_IA32_SYSENTER_CS, (u64)__KERNEL_CS); syscall_init()
H A Dperf_event.h792 regs->cs = kernel_ip(ip) ? __KERNEL_CS : __USER_CS; set_linear_ip()
/linux-4.4.14/arch/x86/mm/kmemcheck/
H A Dkmemcheck.c633 if (regs->cs != __KERNEL_CS) kmemcheck_fault()
/linux-4.4.14/drivers/lguest/
H A Dinterrupts_and_traps.c150 cpu->regs->cs = (__KERNEL_CS|GUEST_PL); guest_run_interrupt()
541 trap->a = ((__KERNEL_CS|GUEST_PL)<<16) | (lo&0x0000FFFF); set_trap()
/linux-4.4.14/arch/x86/math-emu/
H A Dfpu_entry.c137 } else if (FPU_CS == __KERNEL_CS) { math_emulate()
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
H A Dmce.c240 if (m->cs == __KERNEL_CS) print_mce()
/linux-4.4.14/arch/x86/kvm/
H A Dvmx.c4643 vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS); /* 22.2.4 */ vmx_set_constant_host_state()
8373 [cs]"i"(__KERNEL_CS) vmx_handle_external_intr()

Completed in 3614 milliseconds