Skip to contentSkip to conversation

QEMU keyboard issue with Gujin-2.2

Qemu-devel Etienne Lorrain 2 participants 2 messages Oct 11, 2007 – Oct 14, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I did more search on the keyboard problem, just posted on the forum
but here seems to be a better place:

The GPL Gujin bootloader (http://gujin.org) is using the BIOS mouse
interface (INT 0x15/0xC2 interface) and as soon as the "set handler" service is initialised (INT 0x15/0xC207) there is a problem with the keyboard:
uninterrupted "key present" (INT 0x16/0x01) with dummy keys are reported to be pressed.
This never happens with a real PC, and this even happens when the
"mouse handler" is only pointing to a "ret far", but does not happens when this assembly service (to set the handler) is patched out of Gujin code.
It seems that there is a problem in which handler (IRQ1/IRQ12 i.e. INT 0x9/INT 0x74)
is called out of the PS2 controller, when mouse bytes are present.
I am using the qemu part of Fedora 7.

Someone has an idea of what may happens?

I tried to patch/regenerate bochs-2.3/bios/rombios.c because I noted that comment:
// TODO :
//
// int74
// - needs to be reworked. Uses direct [bp] offsets. (?)
but I am really unfamiliar with this codebase, and my patch (to read all the mouse data at once on the first call) did not fix the problem.

Thanks for any information,
Etienne.

      _____________________________________________________________________________ 

Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

#1 lore raw
Quoted 5 lines · Etienne Lorrain

Hello,

I did more search on the keyboard problem, just posted on the forum
but here seems to be a better place:

This may not be the same issue, but I've seen strange behaviour
also. ReactOS has a built in kernel debugger that seems to have a problem with the mouse input. If the mouse is "grabbed" by the QEMU SDL window, and you are in the kernel debugger, moving the mouse will generate "garbage" charaters, usually rendering the debugger useless. Real hardware, VMWare, and QEMU *without* the mouse grabbed do not exhibit this behaviour.
QEMU has acted this way for quite some time, seems forever. I've
mentioned it on #qemu to little interest, but since it's not a huge issue for me, I've not looked into a great deal. Thought I would mention it.

WaxDragon

Signature · 4 lines
22:38 <@WaxDragon> false ^ true
22:39 < false> :(
22:39 < false> dont you think you can XOR me and get away with it! I
always return!