diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2018-12-07 10:49:57 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-10 12:34:28 -0800 |
commit | 080075c076d9c3daabb050abfe9d71b55b585656 (patch) | |
tree | d59bbbe3570b322259be40e33c9f6459fe70ad9d /core | |
parent | c8f2c6b13fda5f2e943c1f978b2da63182891ac5 (diff) | |
download | chrome-ec-080075c076d9c3daabb050abfe9d71b55b585656.tar.gz |
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 <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/1365372
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/nds32/ec.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
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); |