This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
CYG_FPSCR Build error on SH
- From: Kelvin Lawson <klawson at ad-holdings dot co dot uk>
- To: ecos-patches at sources dot redhat dot com
- Date: Thu, 05 Feb 2004 15:22:41 +0000
- Subject: CYG_FPSCR Build error on SH
Builds without CYGHWR_HAL_SH_FPU are failing due to undefined symbol
CYG_FPSCR. Attached a patch to remove the undefined symbol for non-FPU
builds.
Cheers,
Kelvin.
diff -r -u5 -N -x CVS -x '*~' -x '.#*' clean/ecos/packages/hal/sh/arch/current/ChangeLog devo/ecos/packages/hal/sh/arch/current/ChangeLog
--- clean/ecos/packages/hal/sh/arch/current/ChangeLog 2003-12-05 17:06:23.000000000 +0000
+++ devo/ecos/packages/hal/sh/arch/current/ChangeLog 2004-02-05 15:05:05.609375000 +0000
@@ -1,5 +1,10 @@
+2004-02-05 Kelvin Lawson <klawson@ad-holdings.co.uk>
+
+ * include/hal_var_bank.inc: Fix build error on non-FPU systems due to
+ CYG_FPSCR.
+
2003-12-05 Andrew Lunn <andrew.lunn@ascom.ch>
* include/hal_intr_excevt.h:
* include/hal_intr_vecs.h: hal_delay_us() is a C function.
diff -r -u5 -N -x CVS -x '*~' -x '.#*' clean/ecos/packages/hal/sh/arch/current/include/hal_var_bank.inc devo/ecos/packages/hal/sh/arch/current/include/hal_var_bank.inc
--- clean/ecos/packages/hal/sh/arch/current/include/hal_var_bank.inc 2003-12-05 17:06:23.000000000 +0000
+++ devo/ecos/packages/hal/sh/arch/current/include/hal_var_bank.inc 2004-02-05 14:50:38.000000000 +0000
@@ -277,11 +277,13 @@
ldc r1,sr
bra 2f
nop
.align 2
1: .long CYG_SR
+#ifdef CYGHWR_HAL_SH_FPU
3: .long CYG_FPSCR
+#endif
# ------------------------------------------------------------
# Register bank has changed now.
2:
.endm