From: Wartan Hachaturow <wart@tepkom.ru>
To: linux-msdos@vger.kernel.org
Subject: Introducing my own interrupt in dosemu.
Date: Fri, 16 Jul 2004 14:25:32 +0400 [thread overview]
Message-ID: <20040716102532.GA5976@mojo.tepkom.ru> (raw)
Hello.
I've got a rather simple task: generate an irq inside dosemu and let
PIC propagate it further into DOS or whatever is running inside.
The irq generation should be driven by a signal to a dosemu process.
I've managed to set my signal handler in arch/linux/async/signal.c, and
I see dosemu actully recieving the needed signal.
Then, in signal handler:
pic_sched(PIC_IRQ10, 1); /* That should schedule an irq 10 in
* 1 "dosemu jiffie", right?
*/
do_irq();
(I decided to use IRQ10 for my needs, since it doesn't look being used
for other stuff in real mode).
If I understand right, this should be enough for IRQ to be generated by
PIC emulation -- but for some reason, when I install a 0x72 interrupt
handler in FreeDOS running under DOSEmu, I don't see any actual calls.
Additionally, I initialize PIC to unmask the interrupt in init.c:
pic_seti(PIC_IRQ10, my_interrupt, 0, NULL);
pic_unmaski(PIC_IRQ10);
But my_interrupt() (which should just do a warn()) doesn't get called
either :(
I must say I'm pretty lost in the code. If someone would show me some
basic direction to go, I'll be thankful..
--
TIA, Wartan.
next reply other threads:[~2004-07-16 10:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-16 10:25 Wartan Hachaturow [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-16 11:18 Introducing my own interrupt in dosemu Stas Sergeev
2004-07-21 13:46 ` Wartan Hachaturow
2004-07-21 16:26 Stas Sergeev
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=20040716102532.GA5976@mojo.tepkom.ru \
--to=wart@tepkom.ru \
--cc=linux-msdos@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.