From 3c2a68b9dc9ae45f5eb0971a3e6583af732c3f91 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 9 Apr 2009 07:38:04 +0000 Subject: The attached patches fixes the problems found bringing up uclibc on coldfire M5485 processor 1. Disable mmap2() if we're compiling for coldfire and fall back to mmap(). It seems to map a different file area on a 2.6.25 linux kernel. 2. Uses pc-relative addresing[1], computes ADDR_ALIGN, PAGE_ALIGN and OFFSET_ALIGN relatively to _dl_pagesize[3]. On coldfire/M5485 _dl_pagesize is 0x2000. Signed-off-by: Groleo Marius --- libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h index 295495baf..f9cf5304b 100644 --- a/libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h +++ b/libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h @@ -40,7 +40,7 @@ testandset (int *spinlock) #else "bset #7,%1; sne %0" #endif - : "=dm"(ret), "=m"(*spinlock) + : "=&dm"(ret), "=m"(*spinlock) : "m"(*spinlock) : "cc"); -- cgit v1.2.3