Date: Mon, 24 Feb 2020 16:41:29 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358292 - head/sys/riscv/riscv Message-ID: <202002241641.01OGfT5Q033727@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002241641.01OGfT5Q033727>