Fixed a small mess-up that messed up all Intel Flash chips, the Bora Pro should now work again.

This commit is contained in:
OBattler
2021-06-08 20:33:22 +02:00
parent 29018a35d8
commit 0ecbb8f7d6

View File

@@ -330,7 +330,7 @@ intel_flash_add_mappings(flash_t *dev)
flash_read, flash_readw, flash_readl,
flash_write, flash_writew, flash_writel,
dev->array + fbase, MEM_MAPPING_EXTERNAL|MEM_MAPPING_ROM|MEM_MAPPING_ROMCS, (void *) dev);
mem_mapping_add(&(dev->mapping_h[i + (max >> 1)]), (base | 0xfff00000), 0x10000,
mem_mapping_add(&(dev->mapping_h[i + max]), (base | 0xfff00000), 0x10000,
flash_read, flash_readw, flash_readl,
flash_write, flash_writew, flash_writel,
dev->array + fbase, MEM_MAPPING_EXTERNAL|MEM_MAPPING_ROM|MEM_MAPPING_ROMCS, (void *) dev);