diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-28 23:50:26 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-28 23:50:26 -0700 |
| commit | b5d748ca0a00a7cf495d9a255625480dce9f267f (patch) | |
| tree | 6d4bed65b4e2d12e0b14ac008b28ac82b0378a69 /include/linux/spinlock.h | |
| parent | de553d73a0c3588106f4c318af5e86c1f0d8fddd (diff) | |
Make x86 semaphore routines use register calling convention.
This avoids a bug where the compiler would overwrite the
stackframe that the caller also considered to be a register
save area.
It also shrinks the code segment by a tiny amount by moving
the failure case argument setup into the slow path. This not
only makes the fast path smaller, but it makes it easier on
gcc (gcc is not very good at generating code that uses fixed
register names).
Diffstat (limited to 'include/linux/spinlock.h')
| -rw-r--r-- | include/linux/spinlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index bebb94a4dec0..81d975639389 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h @@ -27,7 +27,7 @@ extra \ ".ifndef " LOCK_SECTION_NAME "\n\t" \ LOCK_SECTION_NAME ":\n\t" \ - ".endif\n\t" + ".endif\n" #define LOCK_SECTION_END \ ".previous\n\t" |
