Kernel - Cleaned up MM_AllocDMA/_MapHWPages/_GetPhysAddr
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / vm8086.c
index 397ec14..25638f6 100644 (file)
@@ -77,7 +77,7 @@ int VM8086_Install(char **Arguments)
        
        // Create BIOS Call process
        pid = Proc_Clone(CLONE_VM);
-       Log_Debug("VM8086", "pid = %i", pid);
+       //Log_Debug("VM8086", "pid = %i", pid);
        if(pid == -1)
        {
                Log_Error("VM8086", "Unable to clone kernel into VM8086 worker");
@@ -89,7 +89,7 @@ int VM8086_Install(char **Arguments)
                Uint16  * volatile rmstack;     // Real Mode Stack
                 int    i;
 
-               Log_Debug("VM8086", "Initialising worker");     
+               //Log_Debug("VM8086", "Initialising worker");   
        
                // Set Image Name
                Threads_SetName("VM8086");
@@ -474,7 +474,7 @@ void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset)
                return NULL;
        }
        
-       pages[i].VirtBase = MM_AllocDMA(1, -1, &pages[i].PhysAddr);
+       pages[i].VirtBase = (tVAddr)MM_AllocDMA(1, -1, &pages[i].PhysAddr);
        if( pages[i].VirtBase == 0 ) {
                Log_Warning("VM8086", "Unable to allocate data page");
                return NULL;

UCC git Repository :: git.ucc.asn.au