www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/03/09:19:57

Date: Thu, 3 Apr 1997 17:07:26 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Bertel k. Brander" <bertel AT post4 DOT tele DOT dk>
cc: djgpp AT delorie DOT com
Subject: Re: Interrupts and locking code
In-Reply-To: <33430D4C.1D69@post4.tele.dk>
Message-ID: <Pine.SUN.3.91.970403170700.27318J-100000@is>
MIME-Version: 1.0

On Thu, 3 Apr 1997, Bertel k. Brander wrote:

> I have two interrupts, one for the timer tick (dos interrupt 8) and
> a uart (serial) interrupt, the interrupt handlers uses a lot of data

You have a lot to catch up.  Hardware interrupt handling in DJGPP is
very different from what you are used to in TC, because protected mode
and the DPMI environment have special rules that you must obey to have
your code work without crashing.

I suggest you begin by reading chapter 18 of the DJGPP FAQ list, which
describes the way low-level programming is done with DJGPP, including
how to set up a hardware interrupt handler and how to lock memory that
it touches.  Then, if you have more specific questions, or if code you
write according to what the FAQ says doesn't work, ask here.

The latest release of the FAQ is available as v2/faq210b.zip from the
same place you get DJGPP.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019