Author: ros-arm-bringup
Date: Wed Feb 13 09:43:36 2008
New Revision: 32342
URL:
http://svn.reactos.org/svn/reactos?rev=32342&view=rev
Log:
Convert all Mm ASM stubs to C stubs in mm/arm/stubs.c. Now we can see what functions are
called.
Modified:
trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s
trunk/reactos/ntoskrnl/mm/arm/stubs.c
Modified: trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/arm/stubs_asm.…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s (original)
+++ trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s Wed Feb 13 09:43:36 2008
@@ -145,39 +145,6 @@
GENERATE_ARM_STUB KiComputeTimerTableIndex
GENERATE_ARM_STUB CmpInitializeMachineDependentConfiguration
-
-//
-// Memory Manager Arch-Specific
-//
-GENERATE_ARM_STUB MmGetPhysicalAddress
-GENERATE_ARM_STUB MmSetDirtyPage
-GENERATE_ARM_STUB MmSetCleanPage
-GENERATE_ARM_STUB MmIsDirtyPage
-GENERATE_ARM_STUB MmEnableVirtualMapping
-GENERATE_ARM_STUB MmCreatePageFileMapping
-GENERATE_ARM_STUB MmDeleteVirtualMapping
-GENERATE_ARM_STUB MmDisableVirtualMapping
-GENERATE_ARM_STUB MmIsPageSwapEntry
-GENERATE_ARM_STUB MmSetPageProtect
-GENERATE_ARM_STUB MmIsPagePresent
-GENERATE_ARM_STUB MmCreateHyperspaceMapping
-GENERATE_ARM_STUB MmDeleteHyperspaceMapping
-GENERATE_ARM_STUB MmDeletePageFileMapping
-GENERATE_ARM_STUB MmRawDeleteVirtualMapping
-GENERATE_ARM_STUB MmCreateVirtualMappingUnsafe
-GENERATE_ARM_STUB MmInitializeHandBuiltProcess
-GENERATE_ARM_STUB MmCreateProcessAddressSpace
-GENERATE_ARM_STUB Mmi386ReleaseMmInfo
-GENERATE_ARM_STUB MmGetPfnForProcess
-GENERATE_ARM_STUB MmCreateVirtualMapping
-GENERATE_ARM_STUB MiInitPageDirectoryMap
-GENERATE_ARM_STUB MmGetPageDirectory
-GENERATE_ARM_STUB MmInitGlobalKernelPageDirectory
-GENERATE_ARM_STUB MmDeletePageTable
-GENERATE_ARM_STUB MmGetPageProtect
-GENERATE_ARM_STUB MmCreateVirtualMappingForKernel
-GENERATE_ARM_STUB MiGetUserPageDirectoryCount
-
//
// Traps, Debugging and Execeptions
//
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 (original)
+++ trunk/reactos/ntoskrnl/mm/arm/stubs.c Wed Feb 13 09:43:36 2008
@@ -31,3 +31,355 @@
UNIMPLEMENTED;
return;
}
+
+NTSTATUS
+NTAPI
+Mmi386ReleaseMmInfo(IN PEPROCESS Process)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+NTSTATUS
+NTAPI
+MmInitializeHandBuiltProcess(IN PEPROCESS Process,
+ IN PLARGE_INTEGER DirectoryTableBase)
+{
+ //
+ // Share the directory base with the idle process
+ //
+ *DirectoryTableBase = PsGetCurrentProcess()->Pcb.DirectoryTableBase;
+
+ //
+ // Initialize the Addresss Space
+ //
+ MmInitializeAddressSpace(Process, (PMADDRESS_SPACE)&Process->VadRoot);
+
+ //
+ // The process now has an address space
+ //
+ Process->HasAddressSpace = TRUE;
+ return STATUS_SUCCESS;
+}
+
+PULONG
+MmGetPageDirectory(VOID)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+
+BOOLEAN
+NTAPI
+MmCreateProcessAddressSpace(IN ULONG MinWs,
+ IN PEPROCESS Process,
+ IN PLARGE_INTEGER DirectoryTableBase)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+VOID
+NTAPI
+MmDeletePageTable(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+PFN_TYPE
+NTAPI
+MmGetPfnForProcess(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ PFN_TYPE Pfn = {0};
+
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return Pfn;
+}
+
+VOID
+NTAPI
+MmDisableVirtualMapping(IN PEPROCESS Process,
+ IN PVOID Address,
+ OUT PBOOLEAN WasDirty,
+ OUT PPFN_TYPE Page)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+VOID
+NTAPI
+MmRawDeleteVirtualMapping(IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+VOID
+NTAPI
+MmDeleteVirtualMapping(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN BOOLEAN FreePage,
+ OUT PBOOLEAN WasDirty,
+ OUT PPFN_TYPE Page)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+VOID
+NTAPI
+MmDeletePageFileMapping(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN SWAPENTRY *SwapEntry)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+BOOLEAN
+NTAPI
+MmIsDirtyPage(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+VOID
+NTAPI
+MmSetCleanPage(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+VOID
+NTAPI
+MmSetDirtyPage(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+VOID
+NTAPI
+MmEnableVirtualMapping(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+BOOLEAN
+NTAPI
+MmIsPagePresent(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+BOOLEAN
+NTAPI
+MmIsPageSwapEntry(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+NTSTATUS
+NTAPI
+MmCreateVirtualMappingForKernel(IN PVOID Address,
+ IN ULONG flProtect,
+ IN PPFN_TYPE Pages,
+ IN ULONG PageCount)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+NTSTATUS
+NTAPI
+MmCreatePageFileMapping(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN SWAPENTRY SwapEntry)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+NTSTATUS
+NTAPI
+MmCreateVirtualMappingUnsafe(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN ULONG flProtect,
+ IN PPFN_TYPE Pages,
+ IN ULONG PageCount)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+NTSTATUS
+NTAPI
+MmCreateVirtualMapping(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN ULONG flProtect,
+ IN PPFN_TYPE Pages,
+ IN ULONG PageCount)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+ULONG
+NTAPI
+MmGetPageProtect(IN PEPROCESS Process,
+ IN PVOID Address)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+VOID
+NTAPI
+MmSetPageProtect(IN PEPROCESS Process,
+ IN PVOID Address,
+ IN ULONG flProtect)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+/*
+ * @implemented
+ */
+PHYSICAL_ADDRESS
+NTAPI
+MmGetPhysicalAddress(IN PVOID vaddr)
+{
+ PHYSICAL_ADDRESS p;
+
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return p;
+}
+
+PVOID
+NTAPI
+MmCreateHyperspaceMapping(IN PFN_TYPE Page)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+PFN_TYPE
+NTAPI
+MmDeleteHyperspaceMapping(IN PVOID Address)
+{
+ PFN_TYPE Pfn = {0};
+
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return Pfn;
+}
+
+VOID
+NTAPI
+MmInitGlobalKernelPageDirectory(VOID)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}
+
+ULONG
+NTAPI
+MiGetUserPageDirectoryCount(VOID)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+ return 0;
+}
+
+VOID
+NTAPI
+MiInitPageDirectoryMap(VOID)
+{
+ //
+ // TODO
+ //
+ UNIMPLEMENTED;
+}