Searched refs:gdt (Results 1 - 25 of 32) sorted by path

12

/linux-master/arch/x86/boot/compressed/
H A Dhead_32.S64 leal gdt@GOTOFF(%edx), %eax
129 leal gdt@GOTOFF(%ebx), %eax
172 SYM_DATA_START_LOCAL(gdt)
173 .word gdt_end - gdt - 1
179 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
H A Dhead_64.S107 leal rva(gdt)(%ebp), %eax
244 /* After gdt is loaded */
261 * the new gdt/idt that has __KERNEL_CS with CS.L = 1.
436 leaq rva(gdt)(%rbx), %rdx
597 .word gdt_end - gdt - 1
598 .quad gdt - gdt64
601 SYM_DATA_START_LOCAL(gdt)
602 .word gdt_end - gdt - 1
610 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
/linux-master/arch/x86/boot/
H A Dpm.c83 static struct gdt_ptr gdt; local
85 gdt.len = sizeof(boot_gdt)-1;
86 gdt.ptr = (u32)&boot_gdt + (ds() << 4);
88 asm volatile("lgdtl %0" : : "m" (gdt));
/linux-master/arch/x86/events/
H A Dcore.c2810 desc = raw_cpu_ptr(gdt_page.gdt) + idx;
/linux-master/arch/x86/hyperv/
H A Dhv_vtl.c81 struct desc_struct *gdt; local
91 gdt = (struct desc_struct *)((void *)(gdt_ptr.address));
92 tss = (struct ldttss_desc *)(gdt + GDT_ENTRY_TSS);
93 ldt = (struct ldttss_desc *)(gdt + GDT_ENTRY_LDT);
/linux-master/arch/x86/include/asm/
H A Dcpu_entry_area.h91 char gdt[PAGE_SIZE]; member in struct:cpu_entry_area
H A Ddesc.h45 struct desc_struct gdt[GDT_ENTRIES]; member in struct:gdt_page
54 return per_cpu(gdt_page, cpu).gdt;
60 return this_cpu_ptr(&gdt_page)->gdt;
66 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt;
149 native_write_gdt_entry(struct desc_struct *gdt, int entry, const void *desc, int type) argument
156 default: size = sizeof(*gdt); break;
159 memcpy(&gdt[entry], desc, size);
257 struct desc_ptr gdt; local
262 native_store_gdt(&gdt);
269 if (gdt
295 struct desc_struct *gdt = get_cpu_gdt_rw(cpu); local
[all...]
/linux-master/arch/x86/include/uapi/asm/
H A Dkvm.h148 struct kvm_dtable gdt, idt; member in struct:kvm_sregs
159 struct kvm_dtable gdt, idt; member in struct:kvm_sregs2
/linux-master/arch/x86/kernel/acpi/
H A Dwakeup_32.S22 # reload the gdt, as we need the full 32 bit address
31 # and restore the stack ... but you need gdt for this to work
/linux-master/arch/x86/kernel/
H A Dapm_32.c594 struct desc_struct *gdt; local
600 gdt = get_cpu_gdt_rw(cpu);
601 save_desc_40 = gdt[0x40 / 8];
602 gdt[0x40 / 8] = bad_bios_desc;
615 gdt[0x40 / 8] = save_desc_40;
675 struct desc_struct *gdt; local
681 gdt = get_cpu_gdt_rw(cpu);
682 save_desc_40 = gdt[0x40 / 8];
683 gdt[0x40 / 8] = bad_bios_desc;
695 gdt[
2226 struct desc_struct *gdt; local
[all...]
H A Dhead64.c565 .address = (unsigned long)&RIP_REL_REF(init_per_cpu_var(gdt_page.gdt)),
H A Dhead_32.S279 movl %eax,%ss # after changing gdt.
/linux-master/arch/x86/kernel/cpu/
H A Dcommon.c198 DEFINE_PER_CPU_PAGE_ALIGNED(struct gdt_page, gdt_page) = { .gdt = {
/linux-master/arch/x86/kvm/vmx/
H A Dvmx.c1450 void *gdt = get_current_gdt_ro(); local
1464 vmcs_writel(HOST_GDTR_BASE, (unsigned long)gdt); /* 22.2.4 */
/linux-master/arch/x86/kvm/
H A Dx86.c11557 sregs->gdt.limit = dt.size;
11558 sregs->gdt.base = dt.address;
11753 dt.size = sregs->gdt.limit;
11754 dt.address = sregs->gdt.base;
/linux-master/arch/x86/mm/
H A Dcpu_entry_area.c199 cea_set_pte(&cea->gdt, get_cpu_gdt_paddr(cpu), gdt_prot);
H A Dfault.c478 static void show_ldttss(const struct desc_ptr *gdt, const char *name, u16 index) argument
489 if (offset + sizeof(struct ldttss_desc) >= gdt->size) {
494 if (copy_from_kernel_nofault(&desc, (void *)(gdt->address + offset),
556 struct desc_ptr idt, gdt; local
572 native_store_gdt(&gdt);
575 idt.address, idt.size, gdt.address, gdt.size);
578 show_ldttss(&gdt, "LDTR", ldtr);
581 show_ldttss(&gdt, "TR", tr);
/linux-master/arch/x86/platform/pvh/
H A Dhead.S57 lgdt (_pa(gdt))
144 SYM_DATA_START_LOCAL(gdt)
148 SYM_DATA_END(gdt)
/linux-master/arch/x86/purgatory/
H A Dentry64.S18 /* Setup a gdt that should be preserved */
19 lgdt gdt(%rip)
84 SYM_DATA_START_LOCAL(gdt)
88 * so use them as gdt ptr
90 .word gdt_end - gdt - 1
91 .quad gdt
99 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
H A Dsetup-x86_64.S18 /* Load a gdt so I know what the segment registers are */
19 lgdt gdt(%rip)
39 SYM_DATA_START_LOCAL(gdt)
42 * so use them as the gdt ptr
44 .word gdt_end - gdt - 1
45 .quad gdt
53 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
/linux-master/arch/x86/realmode/rm/
H A Dtrampoline_32.S51 lgdtl tr_gdt # load gdt with whatever is appropriate
H A Dtrampoline_64.S87 lgdtl tr_gdt # load gdt with whatever is appropriate
188 * the new gdt/idt that has __KERNEL_CS with CS.L = 1.
262 .short tr_gdt_end - tr_gdt - 1 # gdt limit
271 .short tr_gdt_end - tr_gdt - 1 # gdt limit
/linux-master/arch/x86/xen/
H A Denlighten_pv.c542 * load_gdt for early boot, when the gdt is only mapped once
577 struct desc_struct *gdt; local
586 gdt = get_cpu_gdt_rw(cpu);
587 maddr = arbitrary_virt_to_machine(&gdt[GDT_ENTRY_TLS_MIN+i]);
H A Dsmp_pv.c172 /* We've switched to the "real" per-cpu gdt, so make
231 struct desc_struct *gdt; local
243 gdt = get_cpu_gdt_rw(cpu);
261 BUG_ON((unsigned long)gdt & ~PAGE_MASK);
263 gdt_mfn = arbitrary_virt_to_mfn(gdt);
264 make_lowmem_page_readonly(gdt);
391 /* should set up a minimal gdt */
/linux-master/drivers/firmware/efi/libstub/
H A Dx86-5lvl.c15 static const struct desc_struct gdt[] = { variable in typeref:struct:desc_struct
92 native_load_gdt(&(struct desc_ptr){ sizeof(gdt) - 1, (u64)gdt });

Completed in 410 milliseconds

12