And now more importantly, here's a patch to gets everything right. This
is vs 2.4.16 + kbuild-2.5-2.4.16-3 + kbuild-2.5-2.4.16-ppc-1 (after
making it apply correctly). I'll be sending along a 2.4.18-pre1 patch
later on (but vs a different base tree for now). This fixes 3 things:
1) Add -Wa,-m405 to CONFIG_4xx AFLAGS
2) Either include <asm-offsets.h> or "ppc_defs.h".
3) Only have <asm-ppc/processor.h> include <asm/ptrace.h> if we're
!__ASSEMBLY__, since we were getting a warning. I mean to spend a bit
more time poking around and seeing what/when we should/shouldn't be
defining STACK_FRAME_OVERHEAD, but for now this should do it.
-- Tom Rini (TR1265) http://gate.crashing.org/~trini/===== arch/ppc/Makefile.defs.config 1.1 vs edited ===== --- 1.1/arch/ppc/Makefile.defs.config Sat Dec 29 00:47:34 2001 +++ edited/arch/ppc/Makefile.defs.config Sat Dec 29 16:36:17 2001 @@ -16,15 +16,16 @@ # We can have any number of 'head.o' files, depending on CPU. # So we go ahead and set a default one and then modify it (and # CFLAGS) based on what processor we're on. arch_head = arch/ppc/kernel/head.o ifneq ($(subst n,,$(CONFIG_4xx)),) CFLAGS += -Wa,-m405 + AFLAGS += -Wa,-m405 arch_head := arch/ppc/kernel/head_4xx.o endif ifneq ($(subst n,,$(CONFIG_8xx)),) arch_head := arch/ppc/kernel/head_8xx.o endif ifneq ($(subst n,,$(CONFIG_PPC64BRIDGE)),) ===== arch/ppc/kernel/ppc_asm.h 1.19 vs edited ===== --- 1.19/arch/ppc/kernel/ppc_asm.h Sun Nov 4 04:58:20 2001 +++ edited/arch/ppc/kernel/ppc_asm.h Sat Dec 29 16:36:47 2001 @@ -17,7 +17,11 @@ #include <linux/config.h> #include "ppc_asm.tmpl" +#ifdef CONFIG_KBUILD_2_5 +#include <asm-offsets.h> +#else #include "ppc_defs.h" +#endif /* * Macros for storing registers into and loading registers from ===== include/asm-ppc/processor.h 1.32 vs edited ===== --- 1.32/include/asm-ppc/processor.h Sun Oct 7 17:32:53 2001 +++ edited/include/asm-ppc/processor.h Sat Dec 29 16:50:31 2001 @@ -13,7 +13,6 @@ #include <linux/config.h> -#include <asm/ptrace.h> #include <asm/types.h> #include <asm/mpc8xx.h> @@ -536,6 +535,8 @@ #define SR15 15 #ifndef __ASSEMBLY__ +/* Avoid a warning when we're included with <asm-offsets.h> */ +#include <asm/ptrace.h> #if defined(CONFIG_ALL_PPC) extern int _machine; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/