This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Nptl sh assembly patch


Hi all,

About one month ago I tried to build a cross compile toolchain for the
Super-H architecture using gcc 4.2.3 and glibc 2.7. I did not successed
in building the complete toolchain but I built a stage1 gcc and the
glibc.

When building the glibc I needed to modify some assembly files in
nptl/sysdeps/unix/sysv/linux/sh/. It seems this code as not be fully
tested/compiled. You might be interested by the patch.

Regards,


-- 
Lionel Landwerlin <llandwerlin@gmail.com>
diff -r a/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S b/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S
79c79
< 	 mov	#FUTEX_PRIVATE_FLAG, tmp
---
> 	 mov	#FUTEX_PRIVATE_FLAG, tmp	 ; \
91c91
< 	 mov	#FUTEX_PRIVATE_FLAG, tmp
---
> 	 mov	#FUTEX_PRIVATE_FLAG, tmp	 ; \
99c99
< # define LOAD_FUTEX_WAKE(reg,tmp) \
---
> # define LOAD_FUTEX_WAKE(reg,tmp,tmp2) \
105c105
< 	 mov	#FUTEX_PRIVATE_FLAG, tmp
---
> 	 mov	#FUTEX_PRIVATE_FLAG, tmp	 ; \
diff -r a/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S b/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
45c45
< 	 mov	#FUTEX_PRIVATE_FLAG, tmp
---
> 	 mov	#FUTEX_PRIVATE_FLAG, tmp	 ; \
57c57
< 	 mov	#FUTEX_PRIVATE_FLAG, tmp
---
> 	 mov	#FUTEX_PRIVATE_FLAG, tmp	 ; \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]