This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[SH][PATCH] fix nptl asm code
- From: SUGIOKA Toshinobu <sugioka at itonet dot co dot jp>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 14 Feb 2009 06:01:02 +0900
- Subject: [SH][PATCH] fix nptl asm code
Hi,
Following patch fixes simple mistake in sh asm code for nptl.
2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: define
LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
Index: nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S,v
retrieving revision 1.18
diff -u -r1.18 lowlevellock.S
--- nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 28 Jan 2009 16:10:00 -0000 1.18
+++ nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 13 Feb 2009 20:27:00 -0000
@@ -103,6 +103,7 @@
and tmp2, reg ; \
mov #FUTEX_WAIT, tmp ; \
or tmp, reg
+# endif
# define LOAD_FUTEX_WAIT_ABS(reg,tmp,tmp2) \
stc gbr, tmp ; \
mov.w 99f, tmp2 ; \
@@ -119,7 +120,6 @@
swap.b tmp2, tmp2; \
or tmp2, tmp; \
or tmp, reg
-# endif
# define LOAD_FUTEX_WAKE(reg,tmp,tmp2) \
stc gbr, tmp ; \
mov.w 99f, tmp2 ; \
SUGIOKA Toshinobu