Subject: Re: illegal instruction trap booting -current kernel
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 03/05/2003 05:46:29
On Tue, 4 Mar 2003, Jason R Thorpe wrote:

> On Tue, Mar 04, 2003 at 09:26:46PM -0600, Frederick Bruckman wrote:
>
>  > BTW, I also build the whole kernel without -msoft-float...

> 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.

OK. I was thinking that the compiler would save and restore any fp
regs before using them, but I'm just now realizing that the
coprocessor executes asynchronously, so you have to wait for it to
catch up before doing anything like that, and that's not something
you want to do often.

Frederick