From 080075c076d9c3daabb050abfe9d71b55b585656 Mon Sep 17 00:00:00 2001 From: Dino Li Date: Fri, 7 Dec 2018 10:49:57 +0800 Subject: it83xx: force filling cache if the last two 4KB blocks of 512KB flash are modified After immu reset, we will fill the immu cache with 8KB data that are outside address 0x7e000 ~ 0x7ffff. When CPU tries to fetch contents from address 0x7e000 ~ 0x7ffff, immu will re-fetch the missing contents inside 0x7e000 ~ 0x7ffff. BUG=b:111808417, b:119799561 BRANCH=none TEST=use console "flasherase" and "flashwrite" commands to erase/write last two 4KB blocks(0x7e000 ~ 0x7ffff), no error message occurred. Change-Id: Ia97c814f20d602c591c39040b964b122edd50205 Signed-off-by: Dino Li Reviewed-on: https://chromium-review.googlesource.com/1365372 Reviewed-by: Diana Z --- core/nds32/ec.lds.S | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S index 7048fe0cfd..926be4f788 100644 --- a/core/nds32/ec.lds.S +++ b/core/nds32/ec.lds.S @@ -48,6 +48,7 @@ SECTIONS ASSERT((__flash_dma_size < IT83XX_ILM_BLOCK_SIZE), "__flash_dma_size < IT83XX_ILM_BLOCK_SIZE"); . = ALIGN(IT83XX_ILM_BLOCK_SIZE); + __flash_text_start = .; *(.text*) } > FLASH . = ALIGN(4); -- cgit v1.2.1