Date: Thu, 22 Mar 2001 17:02:42 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Matthew Jacob <mjacob@feral.com> Cc: arch@FreeBSD.org Subject: Re: Critical Regions Round II Message-ID: <XFMail.010322170242.jhb@FreeBSD.org> In-Reply-To: <Pine.LNX.4.21.0103221645250.14967-100000@zeppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010322170242.jhb>