This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with cache.c for ARM7TDMI


Hi all,

I have discovered a problem while compiling tests in Linux(RedHat 7.2) for ARM7TDMI.

After creating the directory, ecos-work, I ran the following commands:

ecosconfig new INTEGRATOR
ecosconfig tree
make
make tests

After running the last command the system complains about line 80 of cache.c.  Apparently, the declaration:

volatile char m[(HAL_DCACHE_SIZE/HAL_DCACHE_LINE_SIZE)*MAX_STRIDE];

cannot be made outside a function.  So I've modified the cach.c file by putting the above statement within the function time0(..).  See attached.  After I did this things WORKED!!

Attachment: cache.c
Description: Binary data

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]