tac0S
Template Affectional Command Operating System
Main Page
Classes
Files
File List
File Members
code
machine
translate.h
Go to the documentation of this file.
1
21
#ifndef TLB_H
22
#define TLB_H
23
24
#include "copyright.h"
25
#include "
utility.h
"
26
32
33
class
TranslationEntry
{
34
public
:
35
unsigned
int
virtualPage;
// The page number in virtual memory.
36
unsigned
int
physicalPage;
// The page number in real memory (relative to the
37
// start of "mainMemory"
38
bool
valid;
// If this bit is set, the translation is ignored.
39
// (In other words, the entry hasn't been initialized.)
40
bool
readOnly;
// If this bit is set, the user program is not allowed
41
// to modify the contents of the page.
42
bool
use;
// This bit is set by the hardware every time the
43
// page is referenced or modified.
44
bool
dirty;
// This bit is set by the hardware every time the
45
// page is modified.
46
};
47
48
#endif
TranslationEntry
The following class defines an entry in a translation table – either in a page table or a TLB...
Definition:
translate.h:33
utility.h
Miscellaneous useful definitions, including debugging routines.
Generated by
1.8.11