Author: tkreuzer
Date: Sat Sep 20 19:47:15 2008
New Revision: 36361
URL:
http://svn.reactos.org/svn/reactos?rev=36361&view=rev
Log:
Make MmGetPageDirectory an inline function
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1]
Sat Sep 20 19:47:15 2008
@@ -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))