[lkml]   [2000]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: (*(unsigned long *)&jiffies)++;
Andrea Arcangeli wrote:
> > movl foo,%eax ! Get it
> > leal 1(%eax),%edx ! bump it by one
> > movl %edx,foo ! write it back
> The above is perfect for a volatile variable IMHO. Also incl (without lock
> on the bus) is not atomic in SMP.

AFAIK incl _lock_ the bus even without "lock" in fornt of the
on 386 machine. Or at least i386 instruction set manual say so.
But there is no word about all this in the newest manual i got from
Is this changed on i[56]86?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:55    [W:0.113 / U:0.852 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site