Skip to content

Commit eaff9c1

Browse files
author
Sir Richard
committed
[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
1 parent 80d5d95 commit eaff9c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reactos/ntoskrnl/mm/ARM3/miarm.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,18 @@
6262
/* Size of a page table */
6363
#define PT_SIZE (PTE_COUNT * sizeof(MMPTE))
6464

65+
/* Size of a page directory */
66+
#define PD_SIZE (PDE_COUNT * sizeof(MMPDE))
67+
68+
/* Size of all page directories for a process */
69+
#define SYSTEM_PD_SIZE (PD_COUNT * PD_SIZE)
70+
6571
/* Architecture specific count of PDEs in a directory, and count of PTEs in a PT */
6672
#ifdef _M_IX86
6773
#define PD_COUNT 1
6874
#define PDE_COUNT 1024
6975
#define PTE_COUNT 1024
76+
C_ASSERT(SYSTEM_PD_SIZE == PAGE_SIZE);
7077
#elif _M_ARM
7178
#define PD_COUNT 1
7279
#define PDE_COUNT 4096

0 commit comments

Comments
 (0)