This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: flash_olpcx2294_v2 package
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Sergei Gavrikov <sg at belvok dot com>
- Cc: eCos patches list <ecos-patches at ecos dot sourceware dot org>
- Date: Tue, 2 Dec 2008 08:26:45 +0100
- Subject: Re: flash_olpcx2294_v2 package
- References: <20081130122309.GA15263@ubuntu.local> <20081130124943.GA16517@ubuntu.local> <20081202061808.GL27015@lunn.ch> <20081202065654.GB8635@sg-ubuntu.local>
> 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