Added InvalidatePage() which adds a new address to the invalidation cache.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37084 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -31,6 +31,8 @@ struct X86VMTranslationMap : VMTranslationMap {
|
|||||||
|
|
||||||
virtual X86PagingStructures* PagingStructures() const = 0;
|
virtual X86PagingStructures* PagingStructures() const = 0;
|
||||||
|
|
||||||
|
inline void InvalidatePage(addr_t address);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
TranslationMapPhysicalPageMapper* fPageMapper;
|
TranslationMapPhysicalPageMapper* fPageMapper;
|
||||||
int fInvalidPagesCount;
|
int fInvalidPagesCount;
|
||||||
@@ -39,4 +41,14 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
X86VMTranslationMap::InvalidatePage(addr_t address)
|
||||||
|
{
|
||||||
|
if (fInvalidPagesCount < PAGE_INVALIDATE_CACHE_SIZE)
|
||||||
|
fInvalidPages[fInvalidPagesCount] = address;
|
||||||
|
|
||||||
|
fInvalidPagesCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // KERNEL_ARCH_X86_X86_VM_TRANSLATION_MAP_H
|
#endif // KERNEL_ARCH_X86_X86_VM_TRANSLATION_MAP_H
|
||||||
|
|||||||
Reference in New Issue
Block a user