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: Adrian Chadd <adrian%freebsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-sgimips-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
	netbsd-bugs%netbsd.org@localhost
Subject: Re: port-sgimips/60204: sgimips: arcbios calls require FPU to be enabled
Date: Thu, 30 Apr 2026 08:20:37 -0700

 The reason why I enable/disable the FPU the way I did it is because my
 /guess/ is the original FPU change from maya@ was to leave the FPU
 disabled in the kernel during early boot regardless of what
 configuration it was in from the hand-off from the boot firmware.
 
 Thus I figured it would make most sense to keep that assumption and
 just explicitly enable and re-disable the FPU around arcbios calls.
 
 i don't know if k0 is guaranteed to be untouched by the arcbios code
 present on all systems, nor the contents of COP_0_STATUS, so I'm just
 being conservative.
 
 
 -adrian
 



Home | Main Index | Thread Index | Old Index