This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
redboot configuration bug
- From: Jürgen Lambrecht <J dot Lambrecht at televic dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 28 May 2008 17:55:52 +0200
- Subject: [ECOS] redboot configuration bug
Hello,
I am building a RAM version of redboot, and I want to disable the
following option:
CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS.
But this *forces* CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL to become
inactive, so it is undeclared.
And therefore redboot/../main.c fails to compile on line 270:
void
cyg_start(void)
{
...
CYGACC_CALL_IF_SET_CONSOLE_COMM(CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL);
The CDL rationale is correct:
CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL should only be modifiable if
CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE=1, and this only
makes sense if CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS=1.
So the redboot source code should be changed, agree?
line 270 should be replace by something like this:
#ifdef CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL
CYGACC_CALL_IF_SET_CONSOLE_COMM(CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL);
#else
CYGACC_CALL_IF_SET_CONSOLE_COMM(READ_VVT(VVT_DEBUG_CHANNEL));
#endif
Of course READ_VVT is not the correct function/macro. Does anybody know it?
Kind regards,
Juergen
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss