Skip to contentSkip to conversation

Wrong Exception - should have GPF instead of PF for NULL selector

Qemu-devel Antony T Curtis 3 participants 4 messages Jun 12, 2004 – Jun 13, 2004

lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw
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]
#2 lore raw
In reply to Antony T Curtis
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.

#3 lore raw
In reply to Antony T Curtis
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.