Home
last modified time | relevance | path

Searched refs:gdt (Results 1 – 22 of 22) sorted by relevance

/arch/x86/kernel/
Ddoublefault_32.c21 unsigned long gdt, tss; in doublefault_fn() local
24 gdt = gdt_desc.address; in doublefault_fn()
26 printk(KERN_EMERG "PANIC: double fault, gdt at %08lx [%d bytes]\n", gdt, gdt_desc.size); in doublefault_fn()
28 if (ptr_ok(gdt)) { in doublefault_fn()
29 gdt += GDT_ENTRY_TSS << 3; in doublefault_fn()
30 tss = get_desc_base((struct desc_struct *)gdt); in doublefault_fn()
Dtrampoline_32.S70 .word __BOOT_DS + 7 # gdt limit
71 .long boot_gdt - __PAGE_OFFSET # gdt base
Dsetup_percpu.c157 struct desc_struct gdt; in setup_percpu_segment() local
159 pack_descriptor(&gdt, per_cpu_offset(cpu), 0xFFFFF, in setup_percpu_segment()
161 gdt.s = 1; in setup_percpu_segment()
163 GDT_ENTRY_PERCPU, &gdt, DESCTYPE_S); in setup_percpu_segment()
Dtrampoline_64.S114 * the new gdt/idt that has __KERNEL_CS with CS.L = 1.
141 .short tgdt_end - tgdt # gdt limit
Dapm_32.c584 struct desc_struct *gdt; in __apm_bios_call() local
589 gdt = get_cpu_gdt_table(cpu); in __apm_bios_call()
590 save_desc_40 = gdt[0x40 / 8]; in __apm_bios_call()
591 gdt[0x40 / 8] = bad_bios_desc; in __apm_bios_call()
600 gdt[0x40 / 8] = save_desc_40; in __apm_bios_call()
660 struct desc_struct *gdt; in __apm_bios_call_simple() local
665 gdt = get_cpu_gdt_table(cpu); in __apm_bios_call_simple()
666 save_desc_40 = gdt[0x40 / 8]; in __apm_bios_call_simple()
667 gdt[0x40 / 8] = bad_bios_desc; in __apm_bios_call_simple()
675 gdt[0x40 / 8] = save_desc_40; in __apm_bios_call_simple()
[all …]
Dhead_32.S444 movl %eax,%ss # after changing gdt.
/arch/x86/boot/
Dpm.c84 static struct gdt_ptr gdt; in setup_gdt() local
86 gdt.len = sizeof(boot_gdt)-1; in setup_gdt()
87 gdt.ptr = (u32)&boot_gdt + (ds() << 4); in setup_gdt()
89 asm volatile("lgdtl %0" : : "m" (gdt)); in setup_gdt()
/arch/x86/boot/compressed/
Dhead_64.S105 leal gdt(%ebp), %eax
106 movl %eax, gdt+2(%ebp)
107 lgdt gdt(%ebp)
343 gdt: label
344 .word gdt_end - gdt
345 .long gdt
Deboot.c885 struct desc_ptr *gdt, *idt; in efi_main() local
940 EFI_LOADER_DATA, sizeof(*gdt), in efi_main()
941 (void **)&gdt); in efi_main()
945 gdt->size = 0x800; in efi_main()
946 status = low_alloc(gdt->size, 8, (unsigned long *)&gdt->address); in efi_main()
963 memset((char *)gdt->address, 0x0, gdt->size); in efi_main()
964 desc = (struct desc_struct *)gdt->address; in efi_main()
1017 asm volatile ("lgdt %0" : : "m" (*gdt)); in efi_main()
/arch/x86/include/asm/
Ddesc.h42 struct desc_struct gdt[GDT_ENTRIES]; member
49 return per_cpu(gdt_page, cpu).gdt; in get_cpu_gdt_table()
129 native_write_gdt_entry(struct desc_struct *gdt, int entry, const void *desc, int type) in native_write_gdt_entry() argument
136 default: size = sizeof(*gdt); break; in native_write_gdt_entry()
139 memcpy(&gdt[entry], desc, size); in native_write_gdt_entry()
246 struct desc_struct *gdt = get_cpu_gdt_table(cpu); in native_load_tls() local
250 gdt[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i]; in native_load_tls()
Dsuspend_32.h18 struct desc_ptr gdt; member
Dlguest.h74 struct desc_struct gdt[GDT_ENTRIES]; member
Dkvm.h127 struct kvm_dtable gdt, idt; member
/arch/x86/kernel/acpi/
Dwakeup_32.S20 # reload the gdt, as we need the full 32 bit address
30 # and restore the stack ... but you need gdt for this to work
/arch/x86/power/
Dcpu.c64 store_gdt(&ctxt->gdt); in __save_processor_state()
185 load_gdt(&ctxt->gdt); in __restore_processor_state()
/arch/x86/xen/
Dsmp.c286 struct desc_struct *gdt; in cpu_initialize_context() local
296 gdt = get_cpu_gdt_table(cpu); in cpu_initialize_context()
317 BUG_ON((unsigned long)gdt & ~PAGE_MASK); in cpu_initialize_context()
319 gdt_mfn = arbitrary_virt_to_mfn(gdt); in cpu_initialize_context()
320 make_lowmem_page_readonly(gdt); in cpu_initialize_context()
Denlighten.c560 struct desc_struct *gdt = get_cpu_gdt_table(cpu); in load_TLS_descriptor() local
561 xmaddr_t maddr = arbitrary_virt_to_machine(&gdt[GDT_ENTRY_TLS_MIN+i]); in load_TLS_descriptor()
/arch/x86/lguest/
Dboot.c331 struct desc_struct *gdt = (void *)desc->address; in lguest_load_gdt() local
334 hcall(LHCALL_LOAD_GDT_ENTRY, i, gdt[i].a, gdt[i].b, 0); in lguest_load_gdt()
/arch/x86/kernel/cpu/
Dcommon.c89 DEFINE_PER_CPU_PAGE_ALIGNED(struct gdt_page, gdt_page) = { .gdt = {
/arch/x86/kvm/
Dvmx.c1302 struct desc_ptr *gdt = &__get_cpu_var(host_gdt); in reload_tss() local
1305 descs = (void *)gdt->address; in reload_tss()
1348 struct desc_ptr *gdt = &__get_cpu_var(host_gdt); in segment_base() local
1356 table_base = gdt->address; in segment_base()
1489 struct desc_ptr *gdt = &__get_cpu_var(host_gdt); in vmx_vcpu_load() local
1503 vmcs_writel(HOST_GDTR_BASE, gdt->address); /* 22.2.4 */ in vmx_vcpu_load()
Dx86.c5627 sregs->gdt.limit = dt.size; in kvm_arch_vcpu_ioctl_get_sregs()
5628 sregs->gdt.base = dt.address; in kvm_arch_vcpu_ioctl_get_sregs()
5697 dt.size = sregs->gdt.limit; in kvm_arch_vcpu_ioctl_set_sregs()
5698 dt.address = sregs->gdt.base; in kvm_arch_vcpu_ioctl_set_sregs()
Dsvm.c618 struct desc_struct *gdt; in svm_hardware_enable() local
643 gdt = (struct desc_struct *)gdt_descr.address; in svm_hardware_enable()
644 sd->tss_desc = (struct kvm_ldttss_desc *)(gdt + GDT_ENTRY_TSS); in svm_hardware_enable()