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:
Frédéric Desbiens
2026-06-30 10:04:02 -04:00
co-authored by Codex
parent 6122a080be
commit 309d2bd91b
2 changed files with 52 additions and 1 deletions
+1 -1
View File
@@ -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. */