Home
last modified time | relevance | path

Searched refs:new_ldt (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/x86/kernel/
H A Dldt.c151 struct ldt_struct *new_ldt; in alloc_ldt_struct() local
157 new_ldt = kmalloc(sizeof(struct ldt_struct), GFP_KERNEL_ACCOUNT); in alloc_ldt_struct()
158 if (!new_ldt) in alloc_ldt_struct()
171 new_ldt->entries = __vmalloc(alloc_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO); in alloc_ldt_struct()
173 new_ldt->entries = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); in alloc_ldt_struct()
175 if (!new_ldt->entries) { in alloc_ldt_struct()
176 kfree(new_ldt); in alloc_ldt_struct()
181 new_ldt->slot = -1; in alloc_ldt_struct()
183 new_ldt->nr_entries = num_entries; in alloc_ldt_struct()
184 return new_ldt; in alloc_ldt_struct()
[all …]
/openbmc/qemu/target/i386/tcg/
H A Dseg_helper.c320 uint32_t new_eflags, new_eip, new_cr3, new_ldt, new_trap; in switch_tss_ra() local
441 new_ldt = access_ldw(&new, tss_base + 0x60); in switch_tss_ra()
454 new_ldt = access_ldw(&new, tss_base + 0x2a); in switch_tss_ra()
534 env->ldt.selector = new_ldt & ~4; in switch_tss_ra()
540 if (new_ldt & 4) { in switch_tss_ra()
541 raise_exception_err_ra(env, EXCP0A_TSS, new_ldt & 0xfffc, retaddr); in switch_tss_ra()
544 if ((new_ldt & 0xfffc) != 0) { in switch_tss_ra()
546 index = new_ldt & ~7; in switch_tss_ra()
548 raise_exception_err_ra(env, EXCP0A_TSS, new_ldt & 0xfffc, retaddr); in switch_tss_ra()
554 raise_exception_err_ra(env, EXCP0A_TSS, new_ldt & 0xfffc, retaddr); in switch_tss_ra()
[all …]