mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:25:58 +00:00
[NTOS]: Add definition for size of a page directory, and size of all page directories required per process (some architectures have more than one page directory per process/address space).
svn path=/trunk/; revision=48937
This commit is contained in:
parent
80d5d95d72
commit
eaff9c1e8c
1 changed files with 7 additions and 0 deletions
|
@ -62,11 +62,18 @@
|
|||
/* Size of a page table */
|
||||
#define PT_SIZE (PTE_COUNT * sizeof(MMPTE))
|
||||
|
||||
/* Size of a page directory */
|
||||
#define PD_SIZE (PDE_COUNT * sizeof(MMPDE))
|
||||
|
||||
/* Size of all page directories for a process */
|
||||
#define SYSTEM_PD_SIZE (PD_COUNT * PD_SIZE)
|
||||
|
||||
/* Architecture specific count of PDEs in a directory, and count of PTEs in a PT */
|
||||
#ifdef _M_IX86
|
||||
#define PD_COUNT 1
|
||||
#define PDE_COUNT 1024
|
||||
#define PTE_COUNT 1024
|
||||
C_ASSERT(SYSTEM_PD_SIZE == PAGE_SIZE);
|
||||
#elif _M_ARM
|
||||
#define PD_COUNT 1
|
||||
#define PDE_COUNT 4096
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue