- Revert 49927 "Update to trunk" as it breaks KsStudio (again)
[reactos.git] / ntoskrnl / mm / arm / stubs.c
index 781ea28..55178c7 100644 (file)
@@ -367,6 +367,18 @@ MmCreateProcessAddressSpace(IN ULONG MinWs,
     return TRUE;
 }
 
+VOID
+NTAPI
+MmUpdatePageDir(IN PEPROCESS Process,
+                IN PVOID Address,
+                IN ULONG Size)
+{
+    //
+    // Nothing to do
+    //
+    return;
+}
+
 NTSTATUS
 NTAPI
 Mmi386ReleaseMmInfo(IN PEPROCESS Process)
@@ -379,6 +391,30 @@ Mmi386ReleaseMmInfo(IN PEPROCESS Process)
     return 0;
 }
 
+NTSTATUS
+NTAPI
+MmInitializeHandBuiltProcess(IN PEPROCESS Process,
+                             IN PULONG DirectoryTableBase)
+{
+    //
+    // Share the directory base with the idle process
+    //
+    DirectoryTableBase[0] = PsGetCurrentProcess()->Pcb.DirectoryTableBase[0];
+    DirectoryTableBase[1] = PsGetCurrentProcess()->Pcb.DirectoryTableBase[1];
+    
+    //
+    // Initialize the Addresss Space
+    //
+    KeInitializeGuardedMutex(&Process->AddressCreationLock);
+    Process->VadRoot.BalancedRoot.u1.Parent = NULL;
+    
+    //
+    // The process now has an address space
+    //
+    Process->HasAddressSpace = TRUE;
+    return STATUS_SUCCESS;
+}
+
 PULONG
 NTAPI
 MmGetPageDirectory(VOID)