NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-sgimips/60204: sgimips: arcbios calls require FPU to be enabled
The following reply was made to PR port-sgimips/60204; it has been noted by GNATS.
From: Nick Hudson <nick.hudson%gmx.co.uk@localhost>
To: gnats-bugs%netbsd.org@localhost,
port-sgimips-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-sgimips/60204: sgimips: arcbios calls require FPU to be
enabled
Date: Wed, 22 Apr 2026 18:15:01 +0100
On 22/04/2026 17:20, adrian%freebsd.org@localhost via gnats wrote:
[snip]
>> Fix:
> This is a terrible solution to the problem but it demonstrates it =
working.
> The real solution likely involves enable/disable FPU routines around =
the arcbios entry points in sys/dev/arcbios/ .
> ```
> diff --git a/sys/arch/mips/mips/locore.S b/sys/arch/mips/mips/locore.S
> index 6481e9be752cb..22d2869407ac1 100644
> --- a/sys/arch/mips/mips/locore.S
> +++ b/sys/arch/mips/mips/locore.S
> @@ -165,8 +165,10 @@ EXPORT_OBJECT(kernel_text) =
# libkvm refers this
> cfc1 t1, MIPS_FIR
> /* Disable again, we don't want it on in the kernel */
> +#if 0
> and k0, ~MIPS_SR_COP_1_BIT
> mtc0 k0, MIPS_COP_0_STATUS
> +#endif
> #endif
> INT_S t0, _C_LABEL(mips_options)+MO_CPU_ID # save PRID =
register
> ```
How about this diff?
Home |
Main Index |
Thread Index |
Old Index