Lines Matching refs:next_tss_desc
2897 struct desc_struct curr_tss_desc, next_tss_desc; in emulator_do_task_switch() local
2907 ret = read_segment_descriptor(ctxt, tss_selector, &next_tss_desc, &desc_addr); in emulator_do_task_switch()
2941 desc_limit = desc_limit_scaled(&next_tss_desc); in emulator_do_task_switch()
2942 if (!next_tss_desc.p || in emulator_do_task_switch()
2943 ((desc_limit < 0x67 && (next_tss_desc.type & 8)) || in emulator_do_task_switch()
2961 if (next_tss_desc.type & 8) in emulator_do_task_switch()
2962 ret = task_switch_32(ctxt, old_tss_sel, old_tss_base, &next_tss_desc); in emulator_do_task_switch()
2965 old_tss_base, &next_tss_desc); in emulator_do_task_switch()
2973 next_tss_desc.type |= (1 << 1); /* set busy flag */ in emulator_do_task_switch()
2974 write_segment_descriptor(ctxt, tss_selector, &next_tss_desc); in emulator_do_task_switch()
2978 ops->set_segment(ctxt, tss_selector, &next_tss_desc, 0, VCPU_SREG_TR); in emulator_do_task_switch()
2981 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2; in emulator_do_task_switch()