Author: tkreuzer
Date: Tue May 5 20:35:00 2015
New Revision: 67566
URL:
http://svn.reactos.org/svn/reactos?rev=67566&view=rev
Log:
[NTOSKRNL]
Remove unused MmGetPageDirectory.
Modified:
trunk/reactos/ntoskrnl/include/internal/amd64/mm.h
trunk/reactos/ntoskrnl/include/internal/arm/mm.h
trunk/reactos/ntoskrnl/include/internal/i386/mm.h
trunk/reactos/ntoskrnl/mm/arm/page.c
trunk/reactos/ntoskrnl/mm/arm/stubs.c
trunk/reactos/ntoskrnl/mm/i386/pagepae.c
trunk/reactos/ntoskrnl/mm/powerpc/page.c
Modified: trunk/reactos/ntoskrnl/include/internal/amd64/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1] Tue May 5 20:35:00
2015
@@ -154,13 +154,6 @@
#define ValidKernelPpe ValidKernelPde
-PULONG64
-FORCEINLINE
-MmGetPageDirectory(VOID)
-{
- return (PULONG64)__readcr3();
-}
-
PMMPTE
FORCEINLINE
MiAddressToPxe(PVOID Address)
Modified: trunk/reactos/ntoskrnl/include/internal/arm/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] Tue May 5 20:35:00
2015
@@ -108,9 +108,6 @@
ManagerDomain
} ARM_DOMAIN;
-struct _EPROCESS;
-PULONG MmGetPageDirectory(VOID);
-
#define MI_MAKE_LOCAL_PAGE(x) ((x)->u.Hard.NonGlobal = 1)
#define MI_MAKE_DIRTY_PAGE(x)
#define MI_MAKE_ACCESSED_PAGE(x)
Modified: trunk/reactos/ntoskrnl/include/internal/i386/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/i386/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/i386/mm.h [iso-8859-1] Tue May 5 20:35:00
2015
@@ -3,9 +3,6 @@
*/
#pragma once
-
-struct _EPROCESS;
-PULONG MmGetPageDirectory(VOID);
#ifdef _PAE_
#define _MI_PAGING_LEVELS 3
Modified: trunk/reactos/ntoskrnl/mm/arm/page.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/arm/page.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/arm/page.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/arm/page.c [iso-8859-1] Tue May 5 20:35:00 2015
@@ -135,14 +135,6 @@
{
UNIMPLEMENTED_DBGBREAK();
return FALSE;
-}
-
-PULONG
-NTAPI
-MmGetPageDirectory(VOID)
-{
- /* Return the TTB */
- return (PULONG)KeArmTranslationTableRegisterGet().AsUlong;
}
NTSTATUS
Modified: trunk/reactos/ntoskrnl/mm/arm/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/arm/stubs.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/arm/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/arm/stubs.c [iso-8859-1] Tue May 5 20:35:00 2015
@@ -315,16 +315,6 @@
return TRUE;
}
-PULONG
-NTAPI
-MmGetPageDirectory(VOID)
-{
- //
- // Return the TTB
- //
- return (PULONG)KeArmTranslationTableRegisterGet().AsUlong;
-}
-
NTSTATUS
NTAPI
MmCreateVirtualMappingInternal(IN PEPROCESS Process,
Modified: trunk/reactos/ntoskrnl/mm/i386/pagepae.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/i386/pagepae.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/i386/pagepae.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/i386/pagepae.c [iso-8859-1] Tue May 5 20:35:00 2015
@@ -103,14 +103,6 @@
__invlpg(Address);
}
#endif
-}
-
-
-
-PULONG
-MmGetPageDirectory(VOID)
-{
- return (PULONG)__readcr3();
}
static ULONG
Modified: trunk/reactos/ntoskrnl/mm/powerpc/page.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/powerpc/page.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/powerpc/page.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/powerpc/page.c [iso-8859-1] Tue May 5 20:35:00 2015
@@ -72,15 +72,6 @@
MiFlushTlb(PULONG Pt, PVOID Address)
{
__asm__("tlbi %0" : "=r" (Address));
-}
-
-
-
-PULONG
-MmGetPageDirectory(VOID)
-{
- unsigned int page_dir=0;
- return((PULONG)page_dir);
}
static ULONG