On Mon, 15 Aug 2011 06:43:36 +0200 Stefan Tauner stefan.tauner@student.tuwien.ac.at wrote:
-typedef struct { +static struct rom_entry { unsigned int start; unsigned int end; unsigned int included; char name[256]; -} romlayout_t;
-static romlayout_t rom_entries[MAX_ROMLAYOUT]; +} rom_entries[MAX_ROMLAYOUT];
this was a big mistake. this type is very useful - not necessarily in this setup, but in general we want a rom_entry type to pass around functions that operate on parts of the flash only (i am working on making reads obey layouts atm).