Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 1998 17:00:07 -0800
From:      Mike Smith <mike@smith.net.au>
To:        zhihuizhang <bf20761@binghamton.edu>
Cc:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Interrupt handler and interrupt unit? 
Message-ID:  <199812030100.RAA01131@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 02 Dec 1998 11:19:03 EST." <Pine.SOL.L3.93.981202110449.23068A-100000@bingsun2> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> In the source code isa.c, I find the definition of intr_unit[].  I have no
> idea what is an interrupt unit and how it is used.  Maybe it refers to one
> of several device units connected by a single controller and that
> controller is assigned one IRQ by OS or hardware jumpers? 

It's the saved unit number that's passed to the interrupt handler when 
invoked.

> Also, I want to know what specific information is passed to the system
> when an interrupt occurs.  I read in a book on device driver, it only says
> this is OS and hardware dependent.

Which part of the system?  The general practice is that the hardware 
ultimately forwards an identifier for the interrupt number; everything 
else is determined from that.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812030100.RAA01131>