added ROM/RAM translation addresses

This commit is contained in:
Markus Fröschle
2013-02-13 16:42:57 +00:00
parent d2da6b11ca
commit 71efe29815

View File

@@ -79,6 +79,21 @@ static uint32_t mx29lv640d_flash_sectors[] =
}; };
static const int num_flash_sectors = sizeof(mx29lv640d_flash_sectors) / sizeof(uint32_t); static const int num_flash_sectors = sizeof(mx29lv640d_flash_sectors) / sizeof(uint32_t);
typedef struct romram
{
uint32_t flash_address;
uint32_t ram_address;
} ROMRAM;
static const struct romram flash_areas[] =
{
/* TODO: add real addresses, leave BaS itself out for now (dangerous) */
{ 0xe0000000, 0 }, /* EmuTOS */
{ 0xe0000000, 0 }, /* FireTOS */
{ 0xe0000000, 0 }, /* FPGA config */
};
static const int num_flash_areas = sizeof(flash_areas) / sizeof(struct romram);
extern err_t simulate(); extern err_t simulate();
extern err_t memcpy(); extern err_t memcpy();
extern err_t verify(); extern err_t verify();