All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Introducing my own interrupt in dosemu.
Date: Fri, 16 Jul 2004 15:18:20 +0400	[thread overview]
Message-ID: <40F7B97C.10107@aknet.ru> (raw)

Hello.

Wartan Hachaturow wrote:
> Then, in signal handler:
> pic_sched(PIC_IRQ10, 1);  /* That should schedule an irq 10 in 
>			   * 1 "dosemu jiffie", right?
>			   */
>       do_irq(); 
That's rather wrong. You took that from the
timer code, but that's really not the case
here. You should just use pic_request().

> Additionally, I initialize PIC to unmask the interrupt in init.c:
> pic_seti(PIC_IRQ10, my_interrupt, 0, NULL);
> pic_unmaski(PIC_IRQ10);
That's correct.

> But my_interrupt() (which should just do a warn()) doesn't get called
> either :(
Note that pic_unmaski() unmasks the IRQ only
internally, i.e. it makes it available for the
use of a DOS prog. You still have to unmask it
from within your DOS program yourself, when
setting up the handler. I guess this is what
you have not done.


             reply	other threads:[~2004-07-16 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-16 11:18 Stas Sergeev [this message]
2004-07-21 13:46 ` Introducing my own interrupt in dosemu Wartan Hachaturow
  -- strict thread matches above, loose matches on Subject: below --
2004-07-21 16:26 Stas Sergeev
2004-07-16 10:25 Wartan Hachaturow

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=40F7B97C.10107@aknet.ru \
    --to=stsp@aknet.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.