mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-14 12:37:01 +08:00
Covered NOR cache block erase boundary
Invalidate extended cache entries that end exactly at the erased block boundary and cover the last-sector case in the zero-base regression test. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
co-authored by
Codex
parent
6122a080be
commit
309d2bd91b
@@ -107,7 +107,7 @@ ULONG cache_entry_end_value;
|
||||
cache_entry_start_value = (ULONG)cache_entry_start;
|
||||
cache_entry_end_value = cache_entry_start_value + (LX_NOR_SECTOR_SIZE * sizeof(ULONG));
|
||||
|
||||
if ((block_start_address <= cache_entry_start_value) && (block_end_address > cache_entry_end_value))
|
||||
if ((block_start_address <= cache_entry_start_value) && (block_end_address >= cache_entry_end_value))
|
||||
{
|
||||
|
||||
/* Yes, this cache entry is in the block to be erased so invalidate it. */
|
||||
|
||||
Reference in New Issue
Block a user