flash_olpcx2294_v2 package

Andrew Lunn andrew@lunn.ch
Tue Dec 2 07:27:00 GMT 2008


> I'm sorry. I told badly about. Find? I did it :-) The main part of the
> question was, variant or target io.h?  It seemed for me that do tweak of
> every plf_io.h is not good idea (perhaps it is a wrong guess). 
> 
> I thought, if I will place the lines the below in
> lpc2xxx/var/currunt/include/var_io.h
> 
> #define CYGARC_CACHED_ADDRESS(x)                       (x)
> #define CYGARC_UNCACHED_ADDRESS(x)                     (x)
> #define CYGARC_PHYSICAL_ADDRESS(x)                     (x)
> #define CYGARC_VIRTUAL_ADDRESS(x)                      (x)
> 
> Does a chance exist to break something?

It is better to have

#ifndef CYGARC_CACHED_ADDRES
#define CYGARC_CACHED_ADDRESS(x)                       (x)
...
...

So that the platform can override it if necessary.

   Andrew



More information about the Ecos-patches mailing list