From 0ecbb8f7d6d0c17886c7c788bbdc5a22e195bbeb Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 8 Jun 2021 20:33:22 +0200 Subject: [PATCH] Fixed a small mess-up that messed up all Intel Flash chips, the Bora Pro should now work again. --- src/mem/intel_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/intel_flash.c b/src/mem/intel_flash.c index b96becc2d..cd064ddee 100644 --- a/src/mem/intel_flash.c +++ b/src/mem/intel_flash.c @@ -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);