Fixes to x86_64 - Fixed MM_phys corrupting memory (forgot to initialise bitmap pointers)
[tpg/acess2.git] / Kernel / arch / x86_64 / main.c
index 5ea1934..7d69368 100644 (file)
@@ -36,6 +36,7 @@ void kmain(Uint MbMagic, void *MbInfoPtr)
                // Adjust Multiboot structure address
                mbInfo = (void*)( (Uint)MbInfoPtr + KERNEL_BASE );
                gsBootCmdLine = (char*)( (Uint)mbInfo->CommandLine + KERNEL_BASE);
+               Log("gsBootCmdLine = '%s'", gsBootCmdLine);
                
                MM_InitPhys_Multiboot( mbInfo );        // Set up physical memory manager
                break;
@@ -45,6 +46,8 @@ void kmain(Uint MbMagic, void *MbInfoPtr)
                return ;
        }
        
+       Log("gsBootCmdLine = '%s'", gsBootCmdLine);
+       
        *(Uint16*)(0xB8000) = 0x1F00|'D';
        Heap_Install();
        

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