nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
페이징

Data Structures

struct  cr3
 Control Register 3 - Page directory base register. More...
 
struct  pgde
 Page Directory Entry. More...
 
struct  pgte
 Page Table Entry. More...
 

Macros

#define NR_PAGES   1024
 
#define NR_TABLES   1024
 
#define TO_IDX(vma, pgd, pgt)
 

Variables

struct pgde __PACKED
 

Detailed Description

Author
Sung-jae Park nices.nosp@m.j@ni.nosp@m.cesj..nosp@m.com
Date
2011-9-21

Macro Definition Documentation

#define NR_PAGES   1024

Definition at line 50 of file paging.h.

#define NR_TABLES   1024

Definition at line 51 of file paging.h.

#define TO_IDX (   vma,
  pgd,
  pgt 
)
Value:
do { \
pgd = ((uint32_t)(vma)) / (pagesize * NR_PAGES); \
pgt = ((uint32_t)(vma)) % (pagesize * NR_PAGES); \
pgt /= pagesize; \
} while (0)

Definition at line 53 of file paging.h.

Referenced by onetime_map_init(), onetime_unmap(), and page_fault_handler().

Variable Documentation

struct cr3 __PACKED