From owner-freebsd-arch Thu Mar 22 17: 3:17 2001 Delivered-To: freebsd-arch@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 427EB37B71B for ; Thu, 22 Mar 2001 17:03:12 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f2N12pG91964; Thu, 22 Mar 2001 17:02:51 -0800 (PST) (envelope-from jhb@FreeBSD.org) 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: Date: Thu, 22 Mar 2001 17:02:42 -0800 (PST) From: John Baldwin To: Matthew Jacob Subject: Re: Critical Regions Round II Cc: arch@FreeBSD.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 23-Mar-01 Matthew Jacob wrote: > >> > Let's put it this way...if I have to solve what appear to be obscure bugs >> > by >> > disabling interrupts in the alpha MD code somewhere, I'll instantiate such >> > a >> > function (again) if it's no longer there. >> >> Ok. Or you could always just call alpha_pal_swpipl(). :) > > I could. But I might actually want to hit the mainbridge source. That would be different from the current disable/enable_intr functions on x86 and ia64, which actually toggle CPU state. On the alpha this is akin to dinking with the IPL. AFAIK, there is no common API for accessing mainbridge/ICU masks to disable individual sources. On x86 we use individual outb's to the ICU's (or writes to the I/O APIC for SMP) and on the alpha we have the platform foo_enable/disable_intr() hooks. On ia64 we don't bother with external interrupts yet. :) However, this leaves enable/disable_intr() as MD functions that are purely up to whatever use a given arch finds for them should it choose to implement them. But I think we are mostly just agreeing with each other. -- 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-arch" in the body of the message