diff packages/redboot/current/src/main.c @ 2144:36bfd6474600

* src/xyzModem.c (xyzModem_stream_open): Fix compiler warnings. * src/flash_load.c (NEW): Implements access to flash * src/load.c: Allow load command to load directly into flash * cdl/redboot.c (CYGBLD_REDBOOT_LOAD_INTO_FLASH) Control new feature, disabled by default. * cdl/main.c (cyg_start): Assert check to see if we have overflowed the workspace. * doc/redboot_cmds.sgml: Document new flag.
author asl
date Sat, 25 Feb 2006 14:21:12 +0000
parents f199806a09e0
children 5c5e93c863ac
line wrap: on
line diff
--- a/packages/redboot/current/src/main.c
+++ b/packages/redboot/current/src/main.c
@@ -361,7 +361,8 @@ cyg_start(void)
         }
     }
 #endif
-
+    CYG_ASSERT(workspace_start < workspace_end, 
+               "negative workspace size");
     while (true) {
         if (prompt) {
             diag_printf("RedBoot> ");