FreeNOS
Macros
IntelPageDirectory.cpp File Reference
#include <SplitAllocator.h>
#include <MemoryBlock.h>
#include "IntelConstant.h"
#include "IntelPageDirectory.h"

Go to the source code of this file.

Macros

#define PAGE_NONE   0
 
#define PAGE_PRESENT   1
 
#define PAGE_READ   0
 
#define PAGE_EXEC   0
 
#define PAGE_WRITE   2
 
#define PAGE_USER   4
 
#define PAGE_SECTION   (1 << 7)
 
#define DIRENTRY(vaddr)   ((vaddr) >> DIRSHIFT)
 Entry inside the page directory of a given virtual address. More...
 

Macro Definition Documentation

◆ DIRENTRY

#define DIRENTRY (   vaddr)    ((vaddr) >> DIRSHIFT)

Entry inside the page directory of a given virtual address.

Parameters
vaddrVirtual Address.
Returns
Index of the corresponding page directory entry.

Definition at line 38 of file IntelPageDirectory.cpp.

◆ PAGE_EXEC

#define PAGE_EXEC   0

Definition at line 26 of file IntelPageDirectory.cpp.

◆ PAGE_NONE

#define PAGE_NONE   0

Definition at line 23 of file IntelPageDirectory.cpp.

◆ PAGE_PRESENT

#define PAGE_PRESENT   1

Definition at line 24 of file IntelPageDirectory.cpp.

◆ PAGE_READ

#define PAGE_READ   0

Definition at line 25 of file IntelPageDirectory.cpp.

◆ PAGE_SECTION

#define PAGE_SECTION   (1 << 7)

Definition at line 29 of file IntelPageDirectory.cpp.

◆ PAGE_USER

#define PAGE_USER   4

Definition at line 28 of file IntelPageDirectory.cpp.

◆ PAGE_WRITE

#define PAGE_WRITE   2

Definition at line 27 of file IntelPageDirectory.cpp.