Subject: Re: Atomic operations for NetBSD
To: Tonnerre <tonnerre@thundrix.ch>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 06/11/2005 10:19:51
Tonnerre wrote:
> The following patch implements atomic operations for NetBSD, but only
> for i386, alpha, and PowerPC based architectures. The generic way for
> architectures that don't support to execute those functions in an atomic
> fashion would be to lock, execute the functions, and unlock. Sure, this
> sucks, but well.
>
> (Unless the architecture doesn't support SMP either, in which case we
> can just execute the operations)
We want atomic ops for UP as well, as we can still take interrupts in
the middle of these operations.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/