mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 05:43:09 +00:00
c15b9fb7ea
- new, un-tested patches - an sh4 sample to work on, and to try to reproduce later. /trunk/patches/glibc/2.7/250-sh-chop-linux-version.patch | 49 49 0 0 ++ /trunk/patches/glibc/2.7/240-sh-lowlevellock-asm.patch | 56 56 0 0 +++ /trunk/patches/glibc/2.7/270-sh-fix-procfs.patch | 11 11 0 0 + /trunk/patches/glibc/2.7/280-sh-fix-kernel-heders-location.patch | 23 23 0 0 + /trunk/patches/glibc/2.7/260-sh-syscall-error-path.patch | 26 26 0 0 + /trunk/samples/sh4-unknown-linux-gnu/crosstool.config | 311 311 0 0 ++++++++++++++ /trunk/samples/sh4-unknown-linux-gnu/reported.by | 3 3 0 0 + 7 files changed, 479 insertions(+)
57 lines
1.7 KiB
Diff
57 lines
1.7 KiB
Diff
--- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S.orig 2007-08-03 16:44:15.000000000 +0100
|
|
+++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 2008-08-19 21:08:19.000000000 +0100
|
|
@@ -76,7 +76,7 @@
|
|
add tmp2, tmp ; \
|
|
mov.l @tmp, tmp2 ; \
|
|
bra 98f ; \
|
|
- mov #FUTEX_PRIVATE_FLAG, tmp
|
|
+ mov #FUTEX_PRIVATE_FLAG, tmp ; \
|
|
99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
|
|
98: extu.b tmp, tmp ; \
|
|
xor tmp, reg ; \
|
|
@@ -88,7 +88,7 @@
|
|
add tmp2, tmp ; \
|
|
mov.l @tmp, tmp2 ; \
|
|
bra 98f ; \
|
|
- mov #FUTEX_PRIVATE_FLAG, tmp
|
|
+ mov #FUTEX_PRIVATE_FLAG, tmp ; \
|
|
99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
|
|
98: extu.b tmp, tmp ; \
|
|
xor tmp, reg ; \
|
|
@@ -96,13 +96,13 @@
|
|
mov #FUTEX_WAIT, tmp ; \
|
|
or tmp, reg
|
|
# endif
|
|
-# define LOAD_FUTEX_WAKE(reg,tmp) \
|
|
+# define LOAD_FUTEX_WAKE(reg,tmp,tmp2) \
|
|
stc gbr, tmp ; \
|
|
mov.w 99f, tmp2 ; \
|
|
add tmp2, tmp ; \
|
|
mov.l @tmp, tmp2 ; \
|
|
bra 98f ; \
|
|
- mov #FUTEX_PRIVATE_FLAG, tmp
|
|
+ mov #FUTEX_PRIVATE_FLAG, tmp ; \
|
|
99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
|
|
98: extu.b tmp, tmp ; \
|
|
xor tmp, reg ; \
|
|
--- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S.orig 2007-08-03 16:44:57.000000000 +0100
|
|
+++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S 2008-08-19 21:08:22.000000000 +0100
|
|
@@ -42,7 +42,7 @@
|
|
add tmp2, tmp ; \
|
|
mov.l @tmp, tmp2 ; \
|
|
bra 98f ; \
|
|
- mov #FUTEX_PRIVATE_FLAG, tmp
|
|
+ mov #FUTEX_PRIVATE_FLAG, tmp ; \
|
|
99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
|
|
98: extu.b tmp, tmp ; \
|
|
xor tmp, reg ; \
|
|
@@ -54,7 +54,7 @@
|
|
add tmp2, tmp ; \
|
|
mov.l @tmp, tmp2 ; \
|
|
bra 98f ; \
|
|
- mov #FUTEX_PRIVATE_FLAG, tmp
|
|
+ mov #FUTEX_PRIVATE_FLAG, tmp ; \
|
|
99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
|
|
98: extu.b tmp, tmp ; \
|
|
xor tmp, reg ; \
|