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:
Ingo Weinhold 2010-06-10 13:22:44 +00:00
parent 4c75e72cde
commit 1c01dd3be0

View File

@ -31,6 +31,8 @@ struct X86VMTranslationMap : VMTranslationMap {
virtual X86PagingStructures* PagingStructures() const = 0;
inline void InvalidatePage(addr_t address);
protected:
TranslationMapPhysicalPageMapper* fPageMapper;
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