Author: imp
Date: Mon Feb 24 16:41:29 2020
New Revision: 358292
URL: https://svnweb.freebsd.org/changeset/base/358292

Log:
  Only compile clear_fpu state code when we're building with options FPE.
  
  Soft float kernels build without floating point, and will fail to build if we
  try to include floating point code.
  
  Obtained from: kp@

Modified:
  head/sys/riscv/riscv/swtch.S

Modified: head/sys/riscv/riscv/swtch.S
==============================================================================
--- head/sys/riscv/riscv/swtch.S        Mon Feb 24 16:41:16 2020        
(r358291)
+++ head/sys/riscv/riscv/swtch.S        Mon Feb 24 16:41:29 2020        
(r358292)
@@ -151,7 +151,6 @@ ENTRY(fpe_state_save)
        __fpe_state_save a0
        ret
 END(fpe_state_save)
-#endif /* FPE */
 
 /*
  * void
@@ -205,6 +204,7 @@ ENTRY(fpe_state_clear)
 
        ret
 END(fpe_state_clear)
+#endif /* FPE */
        
 /*
  * void cpu_throw(struct thread *old __unused, struct thread *new)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to