[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Assembler error message when compiling kernel source



On Mon, Jan 30, 2006 at 01:06:40PM +0100, Wouter Verhelst wrote:
> On Sun, Jan 29, 2006 at 06:31:04PM -0500, Peter Krummrich wrote:
> > Hi,
> > 
> > when trying to compile the kernel source, the assembler complained with an
> > error message. Here is what I did:
> > 

> > 
> > The error message reads:
> > Assembler message: 308: Error : invalid instruction for this architecture;
> > needs 68040 or 68060 or 68881 or cfv4e -- statement `frestore 40(%sp)`
> > ignored
> > setup.o Error 1 in ../arch/m68k/kernel
> > 
> > Do I have to specify my 68060 at some other point or is selecting the 68060
> > option alone in config no good idea?
> 
> It shouldn't be; but apparently, it is :-)
> 
> The assembler message you're getting smells of someone forgetting to add
> -m68060 to some command line.

quite on the contrary - it would work fine without -m68060. There is a 
".chip 68k/68881" missing before "frestore".. feel free to add it there
if you can test it.

The mind boggling thing about gas implementation is that this short
test works with -m68020,-m68030 but fails to compile with -m68040 or 
-m68060:

.section .text
        .chip   68060
        .chip   68k
        frestore        %a1@


The easiest fix is to precede all "generic FPU" instruction with
".chip 68k/68881"  - unless that breaks cfv4e??


Richard



Reply to: