From owner-freebsd-arch Sat Mar 17 12:32:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from moby.geekhouse.net (moby.geekhouse.net [64.81.6.36]) by hub.freebsd.org (Postfix) with ESMTP id 9FC3A37B718 for ; Sat, 17 Mar 2001 12:32:26 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@dhcp152.geekhouse.net [192.168.1.152]) by moby.geekhouse.net (8.11.0/8.9.3) with ESMTP id f2HKYO189867; Sat, 17 Mar 2001 12:34:25 -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: <200103171859.f2HIx8946196@harmony.village.org> Date: Sat, 17 Mar 2001 12:31:50 -0800 (PST) From: John Baldwin To: Warner Losh Subject: Re: man pages Cc: arch@FreeBSD.org, mjacob@feral.com Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 17-Mar-01 Warner Losh wrote: > In message Matthew > Jacob writes: >: ddi_enter_critical, ddi_exit_critical - enter and exit a >: critical region of control > ... >: The driver may not call any functions external to itself in between >: the time it calls ddi_enter_critical() and the time it calls >: ddi_exit_critical(). > ... > > Hmmm. That's what I need, with the above exception being too > restrictive. I'd need to call functions that frob the hardware. :-) This would allow us to get rid of most of the (ab)uses of *_intr as it is right now. If we were to use a more abstract name for this than just intr_restore/disable, would critical_enter() and critical_exit() work? If I do this, I may not even mess with the current set of foo_intr() functions as they may turn out to no longer be useful. Some things like the ACPI code would need to be taught to not assume cli/sti though. (Intel's ACPICA code is Linux-centric in some places, but I think they are very open to fixes, so I don't expect that will be a problem.) > Warner -- 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