Make MmGetPageDirectory an inline function

svn path=/branches/ros-amd64-bringup/; revision=36361
This commit is contained in:
Timo Kreuzer
2008-09-21 00:47:15 +00:00
parent fb201758c1
commit 52babc02da
+7 -1
View File
@@ -6,7 +6,13 @@
#define __NTOSKRNL_INCLUDE_INTERNAL_AMD64_MM_H
struct _EPROCESS;
PULONG_PTR MmGetPageDirectory(VOID);
PULONG64
FORCEINLINE
MmGetPageDirectory(VOID)
{
return (PULONG64)__readcr3();
}
#define PAGE_MASK(x) ((x)&(~0xfff))
#define PAE_PAGE_MASK(x) ((x)&(~0xfffLL))