From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 8 Nov 2005 15:30:36 -0700 From: Matt Porter To: Stefan Roese Message-ID: <20051108153036.F27232@cox.net> References: <20051107124917.C1671@cox.net> <20051107190128.68d41294.akpm@osdl.org> <20051108093759.A26086@cox.net> <200511081838.11236.sr@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <200511081838.11236.sr@denx.de>; from sr@denx.de on Tue, Nov 08, 2005 at 06:38:11PM +0100 Cc: linuxppc-dev@ozlabs.org, linuxppc64-dev@ozlabs.org Subject: Re: 440EP FPU support missing List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Nov 08, 2005 at 06:38:11PM +0100, Stefan Roese wrote: > In the current linux version, Bamboo (440EP) won't compile anymore, because of > missing fpu support: > > make uImage > ... > LD init/built-in.o > LD .tmp_vmlinux1 > arch/ppc/kernel/head_44x.o(.text+0x868): In function `_start': > : undefined reference to `KernelFP' > make: *** [.tmp_vmlinux1] Error 1 > > Somehow arch/ppc/kernel/fpu.S has disappeared. :-( I assume, this happened in > the ppc/ppc64 -> powerpc merge. Any thoughts, why this file disappeared and > how to solve this problem (just restore the original file)? arch/powerpc/kernel/fpu.S is being used now which doesn't have KernelFP. I don't know why the 44x fpu support wasn't using kernel_fp_unavailable_exception() before but I must have missed that reviewing it. Try this patch. -Matt diff --git a/arch/ppc/kernel/head_booke.h b/arch/ppc/kernel/head_booke.h index aeb349b..f3d274c 100644 --- a/arch/ppc/kernel/head_booke.h +++ b/arch/ppc/kernel/head_booke.h @@ -358,6 +358,6 @@ label: NORMAL_EXCEPTION_PROLOG; \ bne load_up_fpu; /* if from user, just load it up */ \ addi r3,r1,STACK_FRAME_OVERHEAD; \ - EXC_XFER_EE_LITE(0x800, KernelFP) + EXC_XFER_EE_LITE(0x800, kernel_fp_unavailable_exception) #endif /* __HEAD_BOOKE_H__ */