`tlbiel' instruction still breaks POWER3 on 2.6.0

Anton Blanchard anton at samba.org
Fri Jan 23 12:29:26 EST 2004


> ameslab 2.6 boots fine on power3
>
> fyi it even works fine when the userland is the old suse sles8,
> pre-rc-anything.

This is good to know. As far as I know the only patch needed to compile
upstream 2.6 on SLES8 is attached below. The fix is actually in -mm but
I doubt we'll get it into mainline (Ive tried a few times and Linus spat
it out).

If anyone else is having build problems on existing distros can they
speak up now? (using either current ameslab or linus BK)

> Im guessing there's a lot in ameslab thats not in 2.6 yet?

Its getting closer. The core bits we need to get merged are SPLPAR
spinlocks and large irqs.

Anton

--

Workaround for ppc64 compiler bug which has since been fixed


 gr16_work-anton/include/linux/compiler-gcc.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/compiler-gcc.h~reloc_hide_patch include/linux/compiler-gcc.h
--- gr16_work/include/linux/compiler-gcc.h~reloc_hide_patch	2003-09-27 15:18:31.000000000 -0500
+++ gr16_work-anton/include/linux/compiler-gcc.h	2003-09-27 15:18:44.000000000 -0500
@@ -13,5 +13,5 @@
    shouldn't recognize the original var, and make assumptions about it */
 #define RELOC_HIDE(ptr, off)					\
   ({ unsigned long __ptr;					\
-    __asm__ ("" : "=g"(__ptr) : "0"(ptr));		\
+    __asm__ ("" : "=r"(__ptr) : "0"(ptr));		\
     (typeof(ptr)) (__ptr + (off)); })

_


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list