This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: PPC HAL reorganization
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] PPC HAL reorganization
- From: Jesper Skov <jskov at redhat dot com>
- Date: 22 Feb 2000 13:55:24 +0100
- References: <200002100758.IAA00958@thinktwice.zoftcorp.dk>
>>>>> "Jesper" == Jesper Skov <jskov@redhat.com> writes:
Jesper> Hi there! With the next available CVS snapshot (preliminary
Jesper> 1.3.1) comes a major reorganization of the exception handling
Jesper> in the PPC HAL. The change is _not_ backwards compatible, so
Jesper> be sure to update all stub ROMs if you plan to use these new
Jesper> sources. Also, be prepared to revert to the old stub ROMs if
Jesper> you need to load/debug old binaries, as the new stubs cannot
Jesper> deal with them.
Turns out it's possible with a little hacking to get older versions of
eCos running under the new stubs. No promises though, your mileage may
vary...
1) Include stubs in the binary (enable CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
2) Adjust the vector load address of the RAM link script from 0x0 to 0x10000
(either install/lib/target.ld or in hal/powerpc/<target>.../mlt*ram.ldi)
3) Enable vector copying in vectors.S (see patch below).
Jesper
Index: vectors.S
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/hal/powerpc/arch/current/src/vectors.S,v
retrieving revision 1.85
diff -u -5 -r1.85 vectors.S
--- vectors.S 2000/01/28 03:53:53 1.85
+++ vectors.S 2000/02/22 12:28:21
@@ -292,5 +289,5 @@
#endif
-
+#define CYG_HAL_POWERPC_COPY_VECTORS
#ifdef CYG_HAL_POWERPC_COPY_VECTORS // only for StubRom-supported startup