Bochs funny quirk

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Nessphoro
Member
Member
Posts: 308
Joined: Sat Apr 30, 2011 12:50 am

Bochs funny quirk

Post by Nessphoro »

In bochs I get this rather interesting situation,
After my V86 code, that finds the right video mode, is done running, sometimes I get this warning in the console window that goes as:
"kbd: OUTB set and command 0x20 encountered,"

Then the whole system hangs w.o. any error.

And also, if that doesn't occur, it still hangs right after the Video Mode is set.

In QEMU works without any problems.
DLBuunk
Member
Member
Posts: 39
Joined: Sun May 18, 2008 9:36 am
Location: The Netherlands

Re: Bochs funny quirk

Post by DLBuunk »

I remember that message from when i wrote my keyboard-driver, i forgot what it caused, though. I assume you use BIOS to work with video-modes (why else V86), so there might be a bug in bochs BIOS. The other possibility is that it bochs-BIOS expects a few things (IRQ vectors and such) set up differently than you gave it. It is OK in Qemu, you say, any clue what it does on real hardware?
User avatar
Nessphoro
Member
Member
Posts: 308
Joined: Sat Apr 30, 2011 12:50 am

Re: Bochs funny quirk

Post by Nessphoro »

Haven't ran it on the real machine - yet.
Bietje
Member
Member
Posts: 100
Joined: Wed Apr 20, 2011 6:57 am

Re: Bochs funny quirk

Post by Bietje »

DLBuunk wrote:I remember that message from when i wrote my keyboard-driver, i forgot what it caused, though. I assume you use BIOS to work with video-modes (why else V86), so there might be a bug in bochs BIOS. The other possibility is that it bochs-BIOS expects a few things (IRQ vectors and such) set up differently than you gave it. It is OK in Qemu, you say, any clue what it does on real hardware?
I remember that I read somewhere that qemu uses the same BIOS image as bochs, so the bug couldn't be in the BIOS.
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Bochs funny quirk

Post by stlw »

Bietje wrote:I remember that I read somewhere that qemu uses the same BIOS image as bochs, so the bug couldn't be in the BIOS.
In laterst version QEMU moved to SeaBIOS and Bochs still uses Bochs BIOS.
Bochs also supports SeaBIOS with SVN sources (but not in 2.4.6 release) so you can try Bochs with SeaBIOS and see if BIOS is really the issue.

Stanislav
Post Reply