patches/glibc/2.3.6/150-sh-lowlevellock.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 06 22:22:02 2009 +0000 (2009-01-06)
changeset 1130 78681fe5cdd1
parent 402 197e1b49586e
permissions -rw-r--r--
Update all samples to the latest set of config options.
There might be some small issues here and there due to the split of CT_ExtractAndPatch.

/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/sh4-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-elf/crosstool.config | 8 4 4 0 +++---
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/armeb-unknown-eabi/crosstool.config | 8 4 4 0 +++---
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/arm-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/arm-iphone-linux-gnueabi/crosstool.config | 5 2 3 0 ++---
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/powerpc-405-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/mips-unknown-elf/crosstool.config | 8 4 4 0 +++---
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/arm-unknown-eabi/crosstool.config | 8 4 4 0 +++---
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-860-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
28 files changed, 237 insertions(+), 88 deletions(-)
yann@402
     1
ML:	http://sources.redhat.com/ml/libc-hacker/2005-09/msg00002.html
yann@402
     2
yann@402
     3
Date: Mon, 05 Sep 2005 21:07:15 +0900 (JST)
yann@402
     4
Message-Id: <20050905.210715.15267870.kkojima@rr.iij4u.or.jp>
yann@402
     5
To: libc-hacker at sources dot redhat dot com
yann@402
     6
Subject: SH: A typo in lowlevellock.S
yann@402
     7
From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
yann@402
     8
yann@402
     9
Hi,
yann@402
    10
yann@402
    11
The appended patch fixes a typo in a low-level lock function.  It
yann@402
    12
set the correct 3rd argument for the futex syscall in loop.  Sorry
yann@402
    13
for missing such an embarrassing bug.
yann@402
    14
yann@402
    15
Regards,
yann@402
    16
	kaz
yann@402
    17
yann@402
    18
nptl/ChangeLog:
yann@402
    19
2005-09-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
yann@402
    20
yann@402
    21
	* sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
yann@402
    22
	Fix typo in register name.
yann@402
    23
yann@402
    24
--- glibc.old/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S	2004-10-26 04:06:44.000000000 +0900
yann@402
    25
+++ glibc/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S	2005-09-05 19:18:25.000000000 +0900
yann@402
    26
@@ -1,4 +1,4 @@
yann@402
    27
-/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
yann@402
    28
+/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
yann@402
    29
    This file is part of the GNU C Library.
yann@402
    30
 
yann@402
    31
    The GNU C Library is free software; you can redistribute it and/or
yann@402
    32
@@ -51,8 +51,8 @@ __lll_mutex_lock_wait:
yann@402
    33
 	SYSCALL_INST_PAD
yann@402
    34
 
yann@402
    35
 2:
yann@402
    36
-	mov	#2, r4
yann@402
    37
-	XCHG (r4, @r8, r2)
yann@402
    38
+	mov	#2, r6
yann@402
    39
+	XCHG (r6, @r8, r2)
yann@402
    40
 	tst	r2, r2
yann@402
    41
 	bf	1b
yann@402
    42
 
yann@402
    43
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>