From: Kevin O'Connor <kevin@koconnor.net>
To: "Alain Ribière" <alain_ribiere@yahoo.com>
Cc: "seabios@seabios.org" <seabios@seabios.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re : Regression: more 0.12 regression (SeaBIOS related?)
Date: Sun, 11 Mar 2012 20:52:04 -0400 [thread overview]
Message-ID: <20120312005204.GA2340@morn.localdomain> (raw)
In-Reply-To: <1331130691.81802.YahooMailNeo@web130102.mail.mud.yahoo.com>
On Wed, Mar 07, 2012 at 06:31:31AM -0800, Alain Ribière wrote:
> I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :
> qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16
>
> Here is the log :
> https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1ibjJDcEhTRWlNV050QnMyMWwtZw
>
> Here is the floppy disk image I used :
>
> https://docs.google.com/open?id=0B7mz0vq6Rpb7bHpYaEt2SnVUUi1KaWE3a3lBQUJpQQ
>
>
> The floppy disk is simply a C-DOS 720 Ko floppy created by "format
> a: /s". So it's quite empty.
>
> Qemu doesn't crash or freeze. But I can just type a single character
> and the nothing else. But the system is still running (there is a
> clock at the bottom right of the screen).
I tracked this down. Looks like the image takes over the PS2 irq and
keyboard handling, but then occasionally calls into the BIOS. When it
does call the BIOS irq handler (manually), it expects the irq handler
to enable the keyboard. Weird.
Anyway, the patch below fixes it for me.
-Kevin
>From 90ce89f8953da0e89c311aa34116b59aac1c6c5e Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <kevin@koconnor.net>
Date: Sun, 11 Mar 2012 20:45:56 -0400
Subject: [PATCH] ps2: Enable keyboard at end of PS2 port irq.
To: seabios@seabios.org
Looks like some old programs expect the keyboard irq to enable the
keyboard port at the end of the irq. This behavior was seen on an
image of "Concurrent DOS".
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
---
src/ps2port.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/ps2port.c b/src/ps2port.c
index 1f04299..4b27b7a 100644
--- a/src/ps2port.c
+++ b/src/ps2port.c
@@ -404,6 +404,9 @@ handle_09(void)
process_key(v);
+ // Some old programs expect ISR to turn keyboard back on.
+ i8042_command(I8042_CMD_KBD_ENABLE, NULL);
+
done:
eoi_pic1();
}
--
1.7.6.5
next prev parent reply other threads:[~2012-03-12 0:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 17:00 [Qemu-devel] Regression: more 0.12 regression (SeaBIOS related?) Alain Ribière
2012-03-07 13:38 ` Kevin O'Connor
2012-03-07 14:31 ` [Qemu-devel] Re : " Alain Ribière
2012-03-08 13:56 ` Luiz Capitulino
2012-03-08 14:01 ` Kevin O'Connor
2012-03-08 14:09 ` Daniel P. Berrange
2012-03-08 14:28 ` Luiz Capitulino
2012-03-08 14:36 ` [Qemu-devel] [SeaBIOS] " Peter Stuge
2012-03-08 14:37 ` [Qemu-devel] " Daniel P. Berrange
2012-03-08 14:45 ` Luiz Capitulino
2012-03-08 17:04 ` [Qemu-devel] Re : " Alain Ribière
2012-03-12 0:52 ` Kevin O'Connor [this message]
2012-03-12 10:38 ` Alain Ribière
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120312005204.GA2340@morn.localdomain \
--to=kevin@koconnor.net \
--cc=alain_ribiere@yahoo.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).