From owner-freebsd-arch Fri Mar 16 1:29:57 2001 Delivered-To: freebsd-arch@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id 9DBEC37B719; Fri, 16 Mar 2001 01:29:54 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 14dqYQ-0007df-0C; Fri, 16 Mar 2001 09:29:50 +0000 Received: from salmon.nlsystems.com (salmon [10.0.0.3]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id f2G9SZ475061; Fri, 16 Mar 2001 09:28:35 GMT (envelope-from dfr@nlsystems.com) Date: Fri, 16 Mar 2001 09:28:35 +0000 (GMT) From: Doug Rabson To: John Baldwin Cc: Subject: Re: Proposal for the CPU interrupt API In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 15 Mar 2001, John Baldwin wrote: > The end result of these changes would be this: > > intrmask_t intr_disable(void); > intrmask_t intr_enable(void); > void intr_restore(intrmask_t); > > and the code above would become this instead: > > intrmask_t foo = intr_disable(); > ... > intr_restore(foo); > > Comments, objections? Good idea. I nearly did this myself a while ago. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message