[SH][PATCH] fix nptl asm code

SUGIOKA Toshinobu sugioka@itonet.co.jp
Fri Feb 13 22:58:00 GMT 2009


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



More information about the Libc-alpha mailing list