This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

redboot without stubs


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);
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]