lkml.org 
[lkml]   [2009]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/2] FRV: Implement atomic64_t
Date
Linus Torvalds <torvalds@linux-foundation.org> wrote:

> > +#define atomic64_read(v) ((v)->counter)
> > +#define atomic64_set(v, i) (((v)->counter) = (i))
>
> These seem to be buggy.

Good point. I should be doing inline asm with LDD and STD instructions.

David


\
 
 \ /
  Last update: 2009-07-01 19:37    [W:0.151 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site