Subject: Re: -DSOFTFLOAT && -DNOFPU
To: None <port-mips@netbsd.org>
From: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
List: port-mips
Date: 04/16/2000 16:33:04
> I'm curious about two things,
>
> One, How do you get over NOFPU in locore.S ?

The trivial solution is the following kernel entry point code is to
relocate into target port specific area and defer FPA detection logic
after processor PrID value is read.

> start:
> _C_LABEL(kernel_text):
>        mtc0    zero, MIPS_COP_0_STATUS         # Disable interrupts
>    /* SNIP */
> #ifndef NOFPU /* No FPU; avoid touching FPU registers */
>         li      t0, 0                           # Disable interrupts and
>         mtc0    t0, MIPS_COP_0_STATUS           # the fp coprocessor
>
> Two, when you call savefpregs() from mips/mips/process_machdep.c,
> does the kernel get exception and recover it ?

Under developement.

Tohru Nishimura