[NTOSKRNL]

Fix the fix, ie fix x86.
Everything should work now ~

svn path=/trunk/; revision=49790
This commit is contained in:
Pierre Schweitzer 2010-11-24 22:51:03 +00:00
parent cea642beb3
commit fb04d4fd23

View file

@ -39,7 +39,7 @@ PULONG MmGetPageDirectory(VOID);
// Convert a PTE into a corresponding address // Convert a PTE into a corresponding address
// //
#define MiPteToAddress(PTE) ((PVOID)((ULONG)(PTE) << 10)) #define MiPteToAddress(PTE) ((PVOID)((ULONG)(PTE) << 10))
#define MiPdeToAddress(PDE) ((PVOID)((ULONG)(PDE) << 18)) #define MiPdeToAddress(PDE) ((PVOID)((ULONG)(PDE) << 10))
#define ADDR_TO_PAGE_TABLE(v) (((ULONG)(v)) / (1024 * PAGE_SIZE)) #define ADDR_TO_PAGE_TABLE(v) (((ULONG)(v)) / (1024 * PAGE_SIZE))
#define ADDR_TO_PDE_OFFSET(v) ((((ULONG)(v)) / (1024 * PAGE_SIZE))) #define ADDR_TO_PDE_OFFSET(v) ((((ULONG)(v)) / (1024 * PAGE_SIZE)))