This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
MOAB - safer startup
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 09 Oct 2003 14:47:49 -0600
- Subject: MOAB - safer startup
- Organization: MLB Associates
MOAB ROMRAM images are loaded with "-r", hence no start address.
Adding a special vector at 0x0 eliminates this problem (PowerPC
ROM code normally starts at 0x100).
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/moab/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/ChangeLog,v
retrieving revision 1.11
diff -u -5 -p -r1.11 ChangeLog
--- hal/powerpc/moab/current/ChangeLog 3 Oct 2003 23:04:50 -0000 1.11
+++ hal/powerpc/moab/current/ChangeLog 9 Oct 2003 20:34:26 -0000
@@ -1,5 +1,10 @@
+2003-10-09 Gary Thomas <gary@mlbassoc.com>
+
+ * include/plf.inc: Define vector 0, to make ROMRAM mode program startup
+ safer (don't need to remember the "-e XXX" option)
+
2003-10-03 Gary Thomas <gary@mlbassoc.com>
* src/hal_aux.c (hal_platform_init): Better/different ESA computation,
using only 16 unique bits.
Index: hal/powerpc/moab/current/include/plf.inc
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/include/plf.inc,v
retrieving revision 1.1
diff -u -5 -p -r1.1 plf.inc
--- hal/powerpc/moab/current/include/plf.inc 19 Sep 2003 17:11:27 -0000 1.1
+++ hal/powerpc/moab/current/include/plf.inc 9 Oct 2003 20:31:26 -0000
@@ -56,7 +56,13 @@
##
######DESCRIPTIONEND####
##
##=============================================================================
+#ifdef CYG_HAL_STARTUP_ROMRAM
+ .macro hal_reserved_vector_00000
+ b _start
+ .endm
+#define CYG_HAL_RESERVED_VECTOR_00000
+#endif
#endif // CYGONCE_HAL_PLF_INC