FreeNOS
Public Member Functions
IntelCache Class Reference

Intel cache management implementation. More...

#include <IntelCache.h>

Inheritance diagram for IntelCache:
Cache

Public Member Functions

virtual Result invalidate (Type type)
 Invalidate the entire cache. More...
 
virtual Result cleanInvalidate (Type type)
 Clean and invalidate entire cache. More...
 
virtual Result cleanInvalidateAddress (Type type, Address addr)
 Clean and invalidate one memory page. More...
 
virtual Result cleanAddress (Type type, Address addr)
 Clean one memory page. More...
 
virtual Result invalidateAddress (Type type, Address addr)
 Invalidate one memory page. More...
 
- Public Member Functions inherited from Cache
virtual Result cleanData (Address addr)
 Clean one data page. More...
 
virtual Result cleanData (void *ptr)
 Clean one data page. More...
 

Additional Inherited Members

- Public Types inherited from Cache
enum  Result { Success, InvalidArgument, IOError, NotSupported }
 Result codes. More...
 
enum  Type { Instruction, Data, Unified }
 Cache types. More...
 

Detailed Description

Intel cache management implementation.

Definition at line 39 of file IntelCache.h.

Member Function Documentation

◆ cleanAddress()

IntelCache::Result IntelCache::cleanAddress ( IntelCache::Type  type,
Address  addr 
)
virtual

Clean one memory page.

Parameters
typeCache type to clean
addrVirtual memory address of the page to clean and invalidate
Returns
Result code

Implements Cache.

Definition at line 35 of file IntelCache.cpp.

References Cache::Success.

◆ cleanInvalidate()

IntelCache::Result IntelCache::cleanInvalidate ( IntelCache::Type  type)
virtual

Clean and invalidate entire cache.

This operation will clean and invalidate the entire given cache.

Parameters
typeCache type to clean and invalidate.
Returns
Result code

Implements Cache.

Definition at line 25 of file IntelCache.cpp.

References Cache::Success.

◆ cleanInvalidateAddress()

IntelCache::Result IntelCache::cleanInvalidateAddress ( Type  type,
Address  addr 
)
virtual

Clean and invalidate one memory page.

Parameters
typeCache type to clean and invalidate.
addrVirtual memory address of the page to clean and invalidate
Returns
Result code

Implements Cache.

Definition at line 30 of file IntelCache.cpp.

References Cache::Success.

◆ invalidate()

IntelCache::Result IntelCache::invalidate ( IntelCache::Type  type)
virtual

Invalidate the entire cache.

Parameters
typeCache type to invalidate.
Returns
Result code

Implements Cache.

Definition at line 20 of file IntelCache.cpp.

References Cache::Success.

◆ invalidateAddress()

IntelCache::Result IntelCache::invalidateAddress ( IntelCache::Type  type,
Address  addr 
)
virtual

Invalidate one memory page.

Parameters
typeCache type to invalidate
addrVirtual memory address of the page to invalidate
Returns
Result code

Implements Cache.

Definition at line 40 of file IntelCache.cpp.

References Cache::Success.


The documentation for this class was generated from the following files: