This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
tm_basic for edb9301
- From: Daniel Gomes <danielcgomes at yahoo dot com dot br>
- To: eCos discuss <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 26 Nov 2004 17:15:14 -0300 (ART)
- Subject: [ECOS] tm_basic for edb9301
Hi again. :)
In my struggle trying to build the tests for the
EDB9301, I got a problem in tb_basic.cxx. arm-elf-gcc
is complaining about a nasty define that is based in a
variable-size type:
cirrus/ecos-2.0/packages/kernel/v2_0/tests/tm_basic.cxx:143:
variable-size type declared outside of any function
And, indeed, it's true. I've greped for the source of
it and found this :
// install/include/pkgconf/mlt_arm_arm9_edb9301_ram.h
// eCos memory layout - Tue Nov 21 14:25:35 2000
// This is a generated file - do not edit
#include <cyg/infra/cyg_type.h>
#include <stddef.h>
extern unsigned long SDRAMSize;
#define CYGMEM_REGION_ram (0)
#define CYGMEM_REGION_ram_SIZE (SDRAMSize)
Where SDRAMSize is an assembly routine at
install/include/cyg/hal/hal_platform_setup.h
SDRAMSize:
// Store zero at offset zero.
str r0, [r0]
// Start checking for an alias at 1MB into SDRAM.
ldr r1, =0x00100000
(snip, code continues ...)
Well ... now I have a lot of ways to overcome this
problem, like fixing the value in tm_basic, ignoring
tm_basic test for my target, jump out of my office's
window, etc ...
I'd like a suggestion from you, gurus out there.
Thanks a lot, Daniel.
=====
---
Daniel C. Gomes <danielcgomes@yahoo.com.br>
ICQ : 2278714
Belo Horizonte - MG - Brasil
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss