Messages in this thread | | | Date | Sun, 9 Jan 2000 16:17:49 +0100 (CET) | From | Andrea Arcangeli <> | Subject | Re: (*(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/
| |