Subject: Re: illegal instruction trap booting -current kernel
To: Frederick Bruckman <fredb@immanent.net>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-mac68k
Date: 03/04/2003 19:47:01
On Tue, Mar 04, 2003 at 09:26:46PM -0600, Frederick Bruckman wrote:

 > BTW, I also build the whole kernel without -msoft-float...
 > 
 > Index: Makefile.mac68k
 > ===================================================================
 > RCS file: /cvsroot/src/sys/arch/mac68k/conf/Makefile.mac68k,v
 > retrieving revision 1.85
 > diff -u -r1.85 Makefile.mac68k
 > --- Makefile.mac68k	2002/11/26 18:51:15	1.85
 > +++ Makefile.mac68k	2003/03/05 03:21:54
 > @@ -32,7 +32,7 @@
 >  ## (2) compile settings
 >  ##
 >  CPPFLAGS+=	-Dmac68k
 > -CFLAGS+=	-msoft-float
 > +#CFLAGS+=	-msoft-float
 >  AFLAGS+=	-x assembler-with-cpp -traditional-cpp
 > 
 >  ##
 > 
 > as it seems silly to me to hamper the compiler that way, when the
 > kernel is already riddled with floating point assembler anyhow.

DO NOT DO THAT!  The kernel is not supposed to use FP *except* for the
very few places which save/restore/init FP context for user processes.
Compiling without -msoft-float could lead to corrruption of user FP
context.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>