On 15-Aug-01 Mike Smith wrote:
>
> This is *totally* not how to do interrupts with Mach. You should be
> creating a thread for each interrupt source, and keeping a worklist of
> interrupt handlers registered against that source.
That's bascially how ithreads work in -current right now..
>> Could you possibly go over how this works on the i386. Is there a global
>> structure that keeps track of all allocated IRQs and interrupt handling
>> routines? What I really need, is to find out, where this structure is
>> built, so that at this point, I can instead build the structure that xmach
>> needs. Or, alternatively, I can wait until that structure is done, and
>> then make the xmach structure from that...
>>
>> Thanks again,
Go read sys/i386/isa/intr_machdep.c (I know, isa/ is a bad place for it..)
Also look at sys/kern/kern_intr.c and the ithread manpage to understand the MI
ithread portions.
>> JAn
--
John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message