This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
redboot without stubs
- From: Bob Koninckx <bob dot koninckx at fmtc dot be>
- To: ecos-patches at sources dot redhat dot com
- Date: Sun, 11 Jan 2004 22:45:11 +0100
- Subject: redboot without stubs
- Organization: FMTC
- Reply-to: bob dot koninckx at fmtc dot be
Hi list,
I am trying to build redboot as a mere bootloader, that is without any
stubs present. Doing this, I get a link error saying that
__mem_fault_handler, used from main.c is undefinied.
The attached patch solves the link error, I have no idea what this
__mem_fault_handler pointer really does though, just copied the
definition from hal_stub.c
Regards,
Bob
? redboot.patch
Index: main.c
===================================================================
RCS file: /cvs/o3s/software/ecos/packages/redboot/current/src/main.c,v
retrieving revision 1.6
diff -u -5 -r1.6 main.c
--- main.c 11 Jan 2004 17:16:26 -0000 1.6
+++ main.c 11 Jan 2004 21:38:33 -0000
@@ -73,10 +73,12 @@
#else
#include <cyg/hal/plf_stub.h>
#endif
// GDB interfaces
extern void breakpoint(void);
+#else
+void * volatile __mem_fault_handler = (void *)0;
#endif
// Builtin Self Test (BIST)
externC void bist(void);