diff packages/hal/powerpc/mbx/current/include/plf_stub.h @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents c5536bad4c24
children c37d3a9e1b28
line wrap: on
line diff
--- a/packages/hal/powerpc/mbx/current/include/plf_stub.h
+++ b/packages/hal/powerpc/mbx/current/include/plf_stub.h
@@ -81,7 +81,14 @@ externC void hal_mbx_set_led( int val );
 
 //----------------------------------------------------------------------------
 // Reset.
-#define HAL_STUB_PLATFORM_RESET()             CYG_EMPTY_STATEMENT
+#ifdef CYGSEM_HAL_ROM_MONITOR
+// Just call the ROM's entry point. Not as safe as a reset, but the MBX
+// doesn't have a watchdog, so this'll have to do.
+externC void _start(void);
+#define HAL_STUB_PLATFORM_RESET() _start()
+#else
+#define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT
+#endif
 
 #define HAL_STUB_PLATFORM_INTERRUPTIBLE  0