/Linux-v6.6/arch/x86/purgatory/ |
D | setup-x86_64.S | 19 lgdt gdt(%rip) 39 SYM_DATA_START_LOCAL(gdt) 44 .word gdt_end - gdt - 1 45 .quad gdt 53 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
|
D | entry64.S | 19 lgdt gdt(%rip) 84 SYM_DATA_START_LOCAL(gdt) 90 .word gdt_end - gdt - 1 91 .quad gdt 99 SYM_DATA_END_LABEL(gdt, SYM_L_LOCAL, gdt_end)
|
/Linux-v6.6/arch/x86/include/asm/ |
D | desc.h | 45 struct desc_struct gdt[GDT_ENTRIES]; member 53 return per_cpu(gdt_page, cpu).gdt; in get_cpu_gdt_rw() 59 return this_cpu_ptr(&gdt_page)->gdt; in get_current_gdt_rw() 65 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt; in get_cpu_gdt_ro() 148 native_write_gdt_entry(struct desc_struct *gdt, int entry, const void *desc, int type) in native_write_gdt_entry() argument 155 default: size = sizeof(*gdt); break; in native_write_gdt_entry() 158 memcpy(&gdt[entry], desc, size); in native_write_gdt_entry() 256 struct desc_ptr gdt; in native_load_tr_desc() local 261 native_store_gdt(&gdt); in native_load_tr_desc() 268 if (gdt.address == (unsigned long)fixmap_gdt) { in native_load_tr_desc() [all …]
|
D | cpu_entry_area.h | 91 char gdt[PAGE_SIZE]; member
|
/Linux-v6.6/arch/x86/boot/ |
D | pm.c | 82 static struct gdt_ptr gdt; in setup_gdt() local 84 gdt.len = sizeof(boot_gdt)-1; in setup_gdt() 85 gdt.ptr = (u32)&boot_gdt + (ds() << 4); in setup_gdt() 87 asm volatile("lgdtl %0" : : "m" (gdt)); in setup_gdt()
|
/Linux-v6.6/arch/x86/boot/compressed/ |
D | head_32.S | 64 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)
|
D | head_64.S | 107 leal rva(gdt)(%ebp), %eax 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-v6.6/drivers/pnp/pnpbios/ |
D | bioscalls.c | 58 struct desc_struct *gdt = get_cpu_gdt_rw((cpu)); \ 59 set_desc_base(&gdt[(selname) >> 3], (u32)(address)); \ 60 set_desc_limit(&gdt[(selname) >> 3], (size) - 1); \ 480 struct desc_struct *gdt = get_cpu_gdt_rw(i); in pnpbios_calls_init() local 481 if (!gdt) in pnpbios_calls_init() 483 set_desc_base(&gdt[GDT_ENTRY_PNPBIOS_CS32], in pnpbios_calls_init() 485 set_desc_base(&gdt[GDT_ENTRY_PNPBIOS_CS16], in pnpbios_calls_init() 487 set_desc_base(&gdt[GDT_ENTRY_PNPBIOS_DS], in pnpbios_calls_init()
|
/Linux-v6.6/drivers/firmware/efi/libstub/ |
D | x86-5lvl.c | 15 static const struct desc_struct gdt[] = { variable 92 native_load_gdt(&(struct desc_ptr){ sizeof(gdt) - 1, (u64)gdt }); in efi_5level_switch()
|
/Linux-v6.6/arch/x86/platform/pvh/ |
D | head.S | 56 lgdt (_pa(gdt)) 143 SYM_DATA_START_LOCAL(gdt) 147 SYM_DATA_END(gdt)
|
/Linux-v6.6/arch/x86/xen/ |
D | smp_pv.c | 256 struct desc_struct *gdt; in cpu_initialize_context() local 268 gdt = get_cpu_gdt_rw(cpu); in cpu_initialize_context() 286 BUG_ON((unsigned long)gdt & ~PAGE_MASK); in cpu_initialize_context() 288 gdt_mfn = arbitrary_virt_to_mfn(gdt); in cpu_initialize_context() 289 make_lowmem_page_readonly(gdt); in cpu_initialize_context()
|
D | enlighten_pv.c | 574 struct desc_struct *gdt; in load_TLS_descriptor() local 583 gdt = get_cpu_gdt_rw(cpu); in load_TLS_descriptor() 584 maddr = arbitrary_virt_to_machine(&gdt[GDT_ENTRY_TLS_MIN+i]); in load_TLS_descriptor()
|
/Linux-v6.6/arch/x86/hyperv/ |
D | hv_vtl.c | 72 struct desc_struct *gdt; in hv_vtl_bringup_vcpu() local 80 gdt = (struct desc_struct *)((void *)(gdt_ptr.address)); in hv_vtl_bringup_vcpu() 81 tss = (struct ldttss_desc *)(gdt + GDT_ENTRY_TSS); in hv_vtl_bringup_vcpu() 82 ldt = (struct ldttss_desc *)(gdt + GDT_ENTRY_LDT); in hv_vtl_bringup_vcpu()
|
/Linux-v6.6/arch/x86/kernel/ |
D | apm_32.c | 594 struct desc_struct *gdt; in __apm_bios_call() local 600 gdt = get_cpu_gdt_rw(cpu); in __apm_bios_call() 601 save_desc_40 = gdt[0x40 / 8]; in __apm_bios_call() 602 gdt[0x40 / 8] = bad_bios_desc; in __apm_bios_call() 615 gdt[0x40 / 8] = save_desc_40; in __apm_bios_call() 675 struct desc_struct *gdt; in __apm_bios_call_simple() local 681 gdt = get_cpu_gdt_rw(cpu); in __apm_bios_call_simple() 682 save_desc_40 = gdt[0x40 / 8]; in __apm_bios_call_simple() 683 gdt[0x40 / 8] = bad_bios_desc; in __apm_bios_call_simple() 695 gdt[0x40 / 8] = save_desc_40; in __apm_bios_call_simple() [all …]
|
/Linux-v6.6/arch/x86/mm/ |
D | fault.c | 476 static void show_ldttss(const struct desc_ptr *gdt, const char *name, u16 index) in show_ldttss() argument 487 if (offset + sizeof(struct ldttss_desc) >= gdt->size) { in show_ldttss() 492 if (copy_from_kernel_nofault(&desc, (void *)(gdt->address + offset), in show_ldttss() 553 struct desc_ptr idt, gdt; in show_fault_oops() local 569 native_store_gdt(&gdt); in show_fault_oops() 572 idt.address, idt.size, gdt.address, gdt.size); in show_fault_oops() 575 show_ldttss(&gdt, "LDTR", ldtr); in show_fault_oops() 578 show_ldttss(&gdt, "TR", tr); in show_fault_oops()
|
D | cpu_entry_area.c | 199 cea_set_pte(&cea->gdt, get_cpu_gdt_paddr(cpu), gdt_prot); in setup_cpu_entry_area()
|
/Linux-v6.6/arch/x86/kernel/acpi/ |
D | wakeup_32.S | 22 # 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-v6.6/arch/x86/realmode/rm/ |
D | trampoline_64.S | 85 lgdtl tr_gdt # load gdt with whatever is appropriate 231 .short tr_gdt_end - tr_gdt - 1 # gdt limit 240 .short tr_gdt_end - tr_gdt - 1 # gdt limit
|
D | trampoline_32.S | 51 lgdtl tr_gdt # load gdt with whatever is appropriate
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 97 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump() 403 void *gdt = addr_gva2hva(vm, vm->gdt); in kvm_seg_fill_gdt_64bit() local 404 struct desc64 *desc = gdt + (segp->selector >> 3) * 8; in kvm_seg_fill_gdt_64bit() 504 if (!vm->gdt) in kvm_setup_gdt() 505 vm->gdt = __vm_vaddr_alloc_page(vm, MEM_REGION_DATA); in kvm_setup_gdt() 507 dt->base = vm->gdt; in kvm_setup_gdt() 535 kvm_setup_gdt(vm, &sregs.gdt); in vcpu_setup() 1117 sregs.gdt.base = vm->gdt; in vcpu_init_descriptor_tables() 1118 sregs.gdt.limit = getpagesize() - 1; in vcpu_init_descriptor_tables()
|
/Linux-v6.6/arch/x86/include/uapi/asm/ |
D | kvm.h | 148 struct kvm_dtable gdt, idt; member 159 struct kvm_dtable gdt, idt; member
|
/Linux-v6.6/tools/arch/x86/include/uapi/asm/ |
D | kvm.h | 148 struct kvm_dtable gdt, idt; member 159 struct kvm_dtable gdt, idt; member
|
/Linux-v6.6/drivers/virt/acrn/ |
D | hsm.c | 204 for (i = 0; i < ARRAY_SIZE(cpu_regs->vcpu_regs.gdt.reserved); i++) in acrn_dev_ioctl() 205 if (cpu_regs->vcpu_regs.gdt.reserved[i] | in acrn_dev_ioctl()
|
/Linux-v6.6/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 572 struct desc_ptr gdt; in get_gdt() local 574 : /* output */ [gdt]"=m"(gdt)); in get_gdt() 575 return gdt; in get_gdt()
|
/Linux-v6.6/include/uapi/linux/ |
D | acrn.h | 283 struct acrn_descriptor_ptr gdt; member
|