Another Question in Task Switch?
Posted: Mon Feb 24, 2003 3:53 pm
suppose that the current task ( in user mode ) has been interrupted (for examble thru IRQ0 -Timer-),the Interrupt Handler has been declared as Interrupt Gate. when the handler call schudele() which then make the task switch thru far jmp, the cpu then will save all register in TSS of interrupted task. note that ds and cs ss now piont to kernel stack and code selector.
now suppose that we will switch now to that Task again, I think the cpu will generate #GP exception, because this Task has been declared as user level task and this task try to access memory for ring 0? is that right or it is wrong.
until now I have not test it, because I have not written user task yet. for that i need floppy disk driver - which until now not work ;D- and FS support.
now suppose that we will switch now to that Task again, I think the cpu will generate #GP exception, because this Task has been declared as user level task and this task try to access memory for ring 0? is that right or it is wrong.
until now I have not test it, because I have not written user task yet. for that i need floppy disk driver - which until now not work ;D- and FS support.