This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
PowerPC, ROMRAM and vector.S
- From: "Smith, Keith" <Keith dot Smith at PERKINELMER dot COM>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Aug 2011 22:20:34 +0000
- Subject: [ECOS] PowerPC, ROMRAM and vector.S
In the file hal/powerpc/arch/v3_0/src/vector.S are several #ifdef statements.
#ifdef CYGSEM_HAL_POWERPC_RESET_USES_JUMP
#ifdef CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
#ifdef CYGHWR_HAL_POWERPC_ENABLE_MMU
and others.
The #defines are in the file <pkgconf/hal_powerpc.h>.
However, the file hal_powerpc.h is NOT included in the vector.S
Only #include <pkgconf/hal.h> appears.
Without hal_powerpc.h included, CYGSEM_HAL_POWERPC_RESET_USES_JUMP does not get properly defined.
Without CYGSEM_HAL_POWERPC_RESET_USES_JUMP being defined, the ROMRAM version of RedBoot does not generate the correct code for the reset_vector.
See http://ecos.sourceware.org/ml/ecos-discuss/2005-08/msg00162.html for background.
Am I missing something? Do I have out of date source code?
The same issue appears in the 'tip' version of vector.S.
BTW, the comment in vector.S
## Bit 21 biffers between decrementer (0) and external (1).
should read
## Bit 21 differs between decrementer (0) and external (1).
Keith Smith
PerkinElmer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss