fixed bug in pci_scan that prevented the handles array to be filled correctly

This commit is contained in:
Markus Fröschle
2013-11-05 09:22:21 +00:00
parent 13bf658bd6
commit ee8a95855f
3 changed files with 55 additions and 34 deletions

View File

@@ -2,6 +2,12 @@
#include <stddef.h>
#include "bas_types.h"
#if MACHINE_FIREBEE
#include "firebee.h"
#elif MACHINE_M5484LITE
#include "m5484l.h"
#endif /* MACHINE_FIREBEE */
#define AMD_FLASH_BUS_SHIFT 1
#define AMD_FLASH_CELL volatile uint16_t
#define AMD_FLASH_CELL_BYTES 2
@@ -175,7 +181,7 @@ static const struct romram flash_areas[] =
};
static const int num_flash_areas = sizeof(flash_areas) / sizeof(struct romram);
#define FLASH_ADDRESS 0xe0000000
#define FLASH_ADDRESS BOOTFLASH_BASE_ADDRESS
/*
* erase a flash sector