1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.6/glibc-2.3.5-sh-lowlevellock.patch Tue May 22 21:16:17 2007 +0000
1.3 @@ -0,0 +1,43 @@
1.4 +ML: http://sources.redhat.com/ml/libc-hacker/2005-09/msg00002.html
1.5 +
1.6 +Date: Mon, 05 Sep 2005 21:07:15 +0900 (JST)
1.7 +Message-Id: <20050905.210715.15267870.kkojima@rr.iij4u.or.jp>
1.8 +To: libc-hacker at sources dot redhat dot com
1.9 +Subject: SH: A typo in lowlevellock.S
1.10 +From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
1.11 +
1.12 +Hi,
1.13 +
1.14 +The appended patch fixes a typo in a low-level lock function. It
1.15 +set the correct 3rd argument for the futex syscall in loop. Sorry
1.16 +for missing such an embarrassing bug.
1.17 +
1.18 +Regards,
1.19 + kaz
1.20 +
1.21 +nptl/ChangeLog:
1.22 +2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1.23 +
1.24 + * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
1.25 + Fix typo in register name.
1.26 +
1.27 +--- glibc.old/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 2004-10-26 04:06:44.000000000 +0900
1.28 ++++ glibc/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 2005-09-05 19:18:25.000000000 +0900
1.29 +@@ -1,4 +1,4 @@
1.30 +-/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
1.31 ++/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1.32 + This file is part of the GNU C Library.
1.33 +
1.34 + The GNU C Library is free software; you can redistribute it and/or
1.35 +@@ -51,8 +51,8 @@ __lll_mutex_lock_wait:
1.36 + SYSCALL_INST_PAD
1.37 +
1.38 + 2:
1.39 +- mov #2, r4
1.40 +- XCHG (r4, @r8, r2)
1.41 ++ mov #2, r6
1.42 ++ XCHG (r6, @r8, r2)
1.43 + tst r2, r2
1.44 + bf 1b
1.45 +
1.46 +Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>