From owner-freebsd-hackers Wed Aug 15 10:30:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.wrs.com (unknown-1-11.windriver.com [147.11.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 849F437B40F; Wed, 15 Aug 2001 10:30:16 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@[147.11.46.201]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id KAA12756; Wed, 15 Aug 2001 10:30:15 -0700 (PDT) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200108151714.f7FHEIC01010@mass.dis.org> Date: Wed, 15 Aug 2001 10:30:19 -0700 (PDT) From: John Baldwin To: Mike Smith Subject: Re: more Newbus questions Cc: hackers@FreeBSD.org, janb@cs.utep.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -- 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message