diff packages/redboot/current/src/main.c @ 566:17d4ac30ee71

return_to_redboot tweak
author msalter
date Tue, 04 Feb 2003 21:42:51 +0000
parents f2b5df359050
children a2dfa8bf3c57
line wrap: on
line diff
--- a/packages/redboot/current/src/main.c
+++ b/packages/redboot/current/src/main.c
@@ -411,6 +411,10 @@ return_to_redboot(int status)
     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