mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:15:41 +00:00
[FAST486]
Make sure the corrected prefetch address contains the block we're trying to read. svn path=/trunk/; revision=65272
This commit is contained in:
parent
a66700e316
commit
6eb52f4986
1 changed files with 7 additions and 0 deletions
|
@ -106,6 +106,13 @@ Fast486ReadMemory(PFAST486_STATE State,
|
|||
/* We mustn't prefetch across a page boundary */
|
||||
State->PrefetchAddress = PAGE_ALIGN(State->PrefetchAddress)
|
||||
| (FAST486_PAGE_SIZE - FAST486_CACHE_SIZE);
|
||||
|
||||
if ((LinearAddress - State->PrefetchAddress + Size) >= FAST486_CACHE_SIZE)
|
||||
{
|
||||
/* We can't prefetch without possibly violating page permissions */
|
||||
State->PrefetchValid = FALSE;
|
||||
return Fast486ReadLinearMemory(State, LinearAddress, Buffer, Size);
|
||||
}
|
||||
}
|
||||
|
||||
/* Prefetch */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue