Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2001 09:28:35 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        <arch@FreeBSD.org>
Subject:   Re: Proposal for the CPU interrupt API
Message-ID:  <Pine.BSF.4.33.0103160928000.47065-100000@salmon.nlsystems.com>
In-Reply-To: <XFMail.010315182530.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0103160928000.47065-100000>