My task is running segments for program/data with DPL=3
Let's say this task executes this code:
Code: Select all
mov cl, 0
div cl
What should be done to allow exceptions to be thrown while 3rd lvl task is executed ?
Code: Select all
mov cl, 0
div cl
And you obviously did not bother to read the error log it produced while it did that.Jane1991c wrote:then bochs crashes
Do you mean ESP0/SS0 in TSS are missing ? They are set. Did you have on your mind something else ?Combuster wrote:And you obviously did not bother to read the error log it produced while it did that.Jane1991c wrote:then bochs crashes
The difference between exceptions from ring 0 and ring 3 is the mandatory stack switch. To find out which part of that is broken is homework for you (and a lesson in reading).
0x00009100 is my base address of my stack segment01638740346e[CPU0 ] stackPrefetch(4): access [0xfffffffc] > SS.limit [0x00009100]
01638740346e[CPU0 ] stackPrefetch(4): access [0xfffffffc] > SS.limit [0x00009100]
01638740346e[CPU0 ] stackPrefetch(4): access [0xfffffffc] > SS.limit [0x00009100]