lkml.org 
[lkml]   [2004]   [Dec]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VM fixes [4/4]


On Fri, 24 Dec 2004, Andrea Arcangeli wrote:
>
> /*
> + * All archs should support atomic ops with
> + * 1 byte granularity.
> + */
> + unsigned char memdie;

This simply fundamentally isn't true, last I looked.

At least older alphas do _not_ support atomic byte accesses, and if you
want atomic accesses you need to either use the defined smp-atomic
functions (ie things like the bit set operations), or you need to use
"int", which afaik all architectures _do_ support atomic accesses to.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.110 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site