lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: (*(unsigned long *)&jiffies)++;
On Mon, 10 Jan 2000, Tigran Aivazian wrote:

>xchg yes. What 64bit variant? [..]

I was talking about cmpxchg and cmpxchg8. They doesn't implicitly lock the
bus, but you are going to use them always with the lock prefix :)

andrea@alpha:~/kernel > grep cmpxchg 2.2.14/drivers/usb/*.c
2.2.14/drivers/usb/uhci.c: asm volatile("lock ; cmpxchg %4,%2 ; sete %0"
2.2.14/drivers/usb/uhci.c: asm volatile("lock ; cmpxchg %0,%1"

Andrea


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

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