This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
return_to_redboot tweak
- From: Mark Salter <msalter at redhat dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 4 Feb 2003 16:43:21 -0500 (EST)
- Subject: return_to_redboot tweak
Index: current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.87
diff -u -p -5 -r1.87 ChangeLog
--- current/ChangeLog 13 Jan 2003 18:45:26 -0000 1.87
+++ current/ChangeLog 4 Feb 2003 21:40:26 -0000
@@ -1,5 +1,10 @@
+2003-02-04 Mark Salter <msalter@redhat.com>
+2003-02-04 Brian Murphy <brian@murphy.dk>
+
+ * src/main.c (return_to_redboot): Add CYGARC_HAL_RESTORE_GP.
+
2003-01-10 Patrick Doyle <wpd@delcomsys.com>
* src/load.c (do_load): Don't abort and complain about overwriting
the end of RAM when loading raw data files and we already asked
the user if it was ok to write outside what we believe to be RAM.
Index: current/src/main.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/main.c,v
retrieving revision 1.38
diff -u -p -5 -r1.38 main.c
--- current/src/main.c 31 Jan 2003 16:46:01 -0000 1.38
+++ current/src/main.c 4 Feb 2003 21:40:26 -0000
@@ -409,10 +409,14 @@ return_to_redboot(int status)
CYGARC_HAL_SAVE_GP();
go_return_status = status;
HAL_THREAD_LOAD_CONTEXT(&go_saved_context);
// never returns
+
+ // need this to balance above CYGARC_HAL_SAVE_GP on
+ // some platforms. It will never run, though.
+ CYGARC_HAL_RESTORE_GP();
}
void
do_go(int argc, char *argv[])
{