[lkml]   [2005]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/12]: MUTEX: Implement mutexes
On Sat, Dec 17, 2005 at 12:11:39PM -0800, Linus Torvalds wrote:
> Of the other architectures you list, only ARM is really important. And no,
> arm doesn't do swap. It does LL/SC (except they call it "ldrex/strex",
> which I assume stands for "load/store with reservation and X just because
> X is cool. Yeah, we're cool" (*)).

> (*) Actually, some arm docs I found implies that "ex" stands for
> "exclusive", but that leaves me wondering what the "r" stands for?

FYI. The standard instructions:

ldr = load register
str = store register

The new (ARM architecture v6 and above) atomic instructions:

ldrex = load register exclusive
strex = store register exclusive

Previous architecture versions only have the 32-bit and 8 bit
unconditional swap instructions. Luckily they're unlikely to be
used for SMP in the field.

Russell King
Linux kernel 2.6 ARM Linux -
maintainer of: 2.6 Serial core
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-17 22:46    [W:0.058 / U:5.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site