Page 1 of 1

V86 without tss

Posted: Sun Jul 17, 2005 8:25 am
by V86
is it possible to switch into v86 without tss ?

Re:V86 without tss

Posted: Sun Jul 17, 2005 8:54 am
by Brendan
Hi,
V86 wrote: is it possible to switch into v86 without tss ?
IIRC, it is possible to switch to v86 mode without a TSS (using "IRET"), but it's impossible to switch back to CPL=0 without the TSS, which means you can't use any IOPL sensitive instructions (CLI/STI, IN, OUT, etc) without causing a triple fault.

Of course you can have heaps of different tasks/threads all using v86 if you feel like using a single TSS....


Cheers,

Brendan

Re:V86 without tss

Posted: Mon Jul 18, 2005 4:11 am
by mystran
AFAIK Brendan's correct. The only thing you really need TSS for is switching to a more priviledged level, and even then it's only really useful for loading a new stack. But without TSS, no higher priviledge stack, and therefore no switching to higher priviledge level, and therefore triple fault when trying to.