[ECOS] tm_basic for edb9301

Daniel Gomes danielcgomes@yahoo.com.br
Fri Nov 26 20:38:00 GMT 2004

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:

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)

Where SDRAMSize is an assembly routine at

    // 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

More information about the Ecos-discuss mailing list