Lines Matching defs:tss_selector
400 static void switch_tss(int tss_selector,
418 LOG_PCALL("switch_tss: sel=0x%04x type=%d src=%d\n", tss_selector, type, source);
423 raise_exception_err(EXCP0B_NOSEG, tss_selector & 0xfffc);
424 tss_selector = e1 >> 16;
425 if (tss_selector & 4)
426 raise_exception_err(EXCP0A_TSS, tss_selector & 0xfffc);
427 if (load_segment(&e1, &e2, tss_selector) != 0)
428 raise_exception_err(EXCP0D_GPF, tss_selector & 0xfffc);
430 raise_exception_err(EXCP0D_GPF, tss_selector & 0xfffc);
433 raise_exception_err(EXCP0D_GPF, tss_selector & 0xfffc);
437 raise_exception_err(EXCP0B_NOSEG, tss_selector & 0xfffc);
445 if ((tss_selector & 4) != 0 ||
447 raise_exception_err(EXCP0A_TSS, tss_selector & 0xfffc);
582 ptr = env->gdt.base + (tss_selector & ~7);
592 env->tr.selector = tss_selector;
3502 int tss_selector, type;
3522 tss_selector = lduw_kernel(env->tr.base + 0);
3523 if (tss_selector & 4)
3524 raise_exception_err(EXCP0A_TSS, tss_selector & 0xfffc);
3525 if (load_segment(&e1, &e2, tss_selector) != 0)
3526 raise_exception_err(EXCP0A_TSS, tss_selector & 0xfffc);
3530 raise_exception_err(EXCP0A_TSS, tss_selector & 0xfffc);
3531 switch_tss(tss_selector, e1, e2, SWITCH_TSS_IRET, next_eip);