Wrong Exception - should have GPF instead of PF for NULL selector
I have been looking at why OS/2 Warp Connect fails to start Presentation Manager under QEMU and I have found the following...
We get a Page Fault when QEMU encounters the following instruction
0xfe0a9971: mov %es:(%si),%ebx
Where ES=0x0000 and ESI=0xabde0000
This should generate a General Protection exception as we are accessing memory using a NULL selector
I don't know if it would fix OS/2 but it is definitely behaviour which is 'not correct'.
Signature · 1 line
Antony T Curtis <[email protected]>
Quoted 7 lines · Antony T Curtis
I have been looking at why OS/2 Warp Connect fails to start Presentation Manager under QEMU and I have found the following...
We get a Page Fault when QEMU encounters the following instruction
0xfe0a9971: mov %es:(%si),%ebx
Quoted 7 lines
Where ES=0x0000 and ESI=0xabde0000
This should generate a General Protection exception as we are accessing memory using a NULL selector
I don't know if it would fix OS/2 but it is definitely behaviour which is 'not correct'.
Not necessarily, for instance if es was loaded in real mode and cached descriptor is valid.
Signature · 1 line
mailto:[email protected]
Quoted 7 lines · Antony T Curtis
I have been looking at why OS/2 Warp Connect fails to start Presentation Manager under QEMU and I have found the following...
We get a Page Fault when QEMU encounters the following instruction
0xfe0a9971: mov %es:(%si),%ebx
Quoted 7 lines
Where ES=0x0000 and ESI=0xabde0000
This should generate a General Protection exception as we are accessing memory using a NULL selector
I don't know if it would fix OS/2 but it is definitely behaviour which is 'not correct'.
OK, it is not correct, but it is not the cause of the problem: I tried to generate a GPF and I have the same bug. Moreover, I looked at the code before and %es is really set to zero...
Fabrice.
Quoted 2 lines · Antony T Curtis
I have been looking at why OS/2 Warp Connect fails to start Presentation Manager under QEMU and I have found the following...
Fixed :-)
Tell me if OS/2 Wrap works correctly now.
Fabrice.