FreeNOS
lib
libarch
intel
IntelCache.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Niek Linnenbank
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#include "
IntelCache.h
"
19
20
IntelCache::Result
IntelCache::invalidate
(
IntelCache::Type
type
)
21
{
22
return
Success
;
23
}
24
25
IntelCache::Result
IntelCache::cleanInvalidate
(
IntelCache::Type
type
)
26
{
27
return
Success
;
28
}
29
30
IntelCache::Result
IntelCache::cleanInvalidateAddress
(
Type
type
,
Address
addr)
31
{
32
return
Success
;
33
}
34
35
IntelCache::Result
IntelCache::cleanAddress
(
IntelCache::Type
type
,
Address
addr)
36
{
37
return
Success
;
38
}
39
40
IntelCache::Result
IntelCache::invalidateAddress
(
IntelCache::Type
type
,
Address
addr)
41
{
42
return
Success
;
43
}
Cache::Type
Type
Cache types.
Definition:
Cache.h:53
Address
unsigned long Address
A memory address.
Definition:
Types.h:131
Cache::Success
@ Success
Definition:
Cache.h:44
IntelCache::cleanInvalidate
virtual Result cleanInvalidate(Type type)
Clean and invalidate entire cache.
Definition:
IntelCache.cpp:25
IntelCache::invalidate
virtual Result invalidate(Type type)
Invalidate the entire cache.
Definition:
IntelCache.cpp:20
IntelCache::invalidateAddress
virtual Result invalidateAddress(Type type, Address addr)
Invalidate one memory page.
Definition:
IntelCache.cpp:40
Cache::Result
Result
Result codes.
Definition:
Cache.h:42
IntelCache::cleanInvalidateAddress
virtual Result cleanInvalidateAddress(Type type, Address addr)
Clean and invalidate one memory page.
Definition:
IntelCache.cpp:30
IntelCache::cleanAddress
virtual Result cleanAddress(Type type, Address addr)
Clean one memory page.
Definition:
IntelCache.cpp:35
type
u8 type
Definition:
IntelACPI.h:63
IntelCache.h
Generated by
1.8.17