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 - fix build error when stubs disabled


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/src/main.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/main.c,v
retrieving revision 1.51
diff -u -5 -p -r1.51 main.c
--- redboot/current/src/main.c	12 Dec 2003 19:14:04 -0000	1.51
+++ redboot/current/src/main.c	18 Jan 2004 17:41:09 -0000
@@ -216,11 +216,14 @@ _mon_write_char(char c, void **param)
 
 //
 // Handle illegal memory accesses (and other abort conditions)
 //
 static hal_jmp_buf error_jmpbuf;
-externC void* volatile __mem_fault_handler;
+#ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
+externC 
+#endif
+  void* volatile __mem_fault_handler;
 
 static void error_handler(void)
 {
     hal_longjmp(error_jmpbuf, 1);
 }
@@ -288,11 +291,11 @@ cyg_start(void)
         workspace_end = ram_end;
         workspace_size = workspace_end - workspace_start;
     }
 
     // Nothing has ever been loaded into memory
-    entry_address = NO_MEMORY;
+    entry_address = (unsigned long)NO_MEMORY;
 
     bist();
 
 #ifdef CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER
     fis_zlib_common_buffer =

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