Re: more Newbus questions

2001-08-15 Thread John Baldwin
On 15-Aug-01 [EMAIL PROTECTED] wrote: > OK, this is helpful, but I have looked at this before. this seems to be > where the interrupt vector table is initialized.(correct me if I am > wrong..) NOw, where do the devices that newbus finds and probes get > inserted into these structures(intr_handler

Re: more Newbus questions

2001-08-15 Thread janb
OK, this is helpful, but I have looked at this before. this seems to be where the interrupt vector table is initialized.(correct me if I am wrong..) NOw, where do the devices that newbus finds and probes get inserted into these structures(intr_handler,intr_mptr, etc)? Also, what are fastintr[] and

Re: more Newbus questions

2001-08-15 Thread janb
Thanks, will do JAn > > 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 Ke

Re: more Newbus questions

2001-08-15 Thread janb
That is fine. We are curently in the proccess of fixing up xmach, since there are about 10 years of code rot in the thing. Priorty for me righ now is to get newbus to work under xmach. i.e. I need to put newbus to work with the way xmach handles device, which I am quite familiar with. What I need

Re: more Newbus questions

2001-08-15 Thread John Baldwin
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.. >>

Re: more Newbus questions

2001-08-15 Thread Mike Smith
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. Unfortunately, I can't help you with Mach-related things, since I work for Apple and that'd put me in

Re: more Newbus questions

2001-08-15 Thread janb
> None of these are newbus items. Interrupt dispatch is not managed by > newbus (due to the costs involved). Instead, interrupts are attached > with bus_setup_intr, which forwards the interrupt handler and argument > to platform-specific code. The resource mananger is involved (since > interrup

more Newbus questions

2001-08-13 Thread janb
First, I would like to thank all of you who answered my first question. I have spent the past couple of days reading through the newbus code, and have a couple more questions. I think I have a pretty good Idea about the device tree by now, but I am a bit confused, as to how the interrupts are hand