www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/28/19:07:22

Date: Sun, 28 Sep 1997 15:03:25 -0700 (PDT)
Message-Id: <199709282203.PAA14896@adit.ap.net>
Mime-Version: 1.0
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Int-Hooking, DOS vs LINUX

At 01:37  9/28/1997 -0400, Peter Palotas wrote:
>How does hooking interrupts and interrupts in general vary between DOS and
>LINUX? Would an asm-file hooking an interrupt written for DJGPP work when
>compiling it with GCC under LINUX? If not, what's the diffrences?

You quite definitely cannot hook interrupts the same under Linux as DOS.
Messing with the interrupt table is one of those yucky low-level things that
a real operating system forbids.  All interface to hardware is supposed to
go through the /dev/* devices, and the kernel does the actual interrupt
hooking to make the devices work.  To hook interrupts under Linux, you
either have to be the kernel, or at least be running as superuser.  I also
don't know how any non-kernel program would go about using interrupts (or
for that matter how the kernel itself does it).  You might ask on
comp.os.linux if this is really important.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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