- Major cleanup, refactoring, and bugfixing of ARM Mm code in preparation for user-mode support.

- Sync the code a lot closer to its x86 counterpart, still more work to be done.
- Very soon, it should be possible to share upward of 50% of the new ARM code with the x86 version of React as well and unify the implementations.

svn path=/trunk/; revision=34857
This commit is contained in:
ReactOS Portable Systems Group 2008-07-27 19:52:41 +00:00
parent 246c0ca9d0
commit 027390f247
2 changed files with 577 additions and 483 deletions

View file

@ -147,4 +147,23 @@ typedef enum _ARM_DOMAIN
ManagerDomain
} ARM_DOMAIN;
//
// Take 0x80812345 and extract:
// PTE_BASE[0x808][0x12]
//
#define MiGetPteAddress(x) \
(PMMPTE)(PTE_BASE + \
(((ULONG)(x) >> 20) << 12) + \
((((ULONG)(x) >> 12) & 0xFF) << 2))
#define MiGetPdeAddress(x) \
(PMMPTE)(PDE_BASE + \
(((ULONG)(x) >> 20) << 2))
#define MiGetPdeOffset(x) (((ULONG)(x)) >> 22)
#define PTE_BASE 0xC0000000
#define PDE_BASE 0xC1000000
#define HYPER_SPACE ((PVOID)0xC1100000)
#endif

File diff suppressed because it is too large Load diff