X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86_64%2Fmain.c;h=bd8bb4a4b04c16cf51ec6a8248b71306796fe831;hb=d7dcea0e5a8df0f479e99f168a10b9a9535c7ad6;hp=f4c4a81806cf75476d2f0a5f14a0684caa69b305;hpb=a8759b69a7dddfeff55bdfde62a9a0765ccc7eee;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86_64/main.c b/KernelLand/Kernel/arch/x86_64/main.c index f4c4a818..bd8bb4a4 100644 --- a/KernelLand/Kernel/arch/x86_64/main.c +++ b/KernelLand/Kernel/arch/x86_64/main.c @@ -19,7 +19,6 @@ // === IMPORTS === extern void Desctab_Init(void); extern void MM_InitVirt(void); -extern void Heap_Install(void); extern int Time_Setup(void); extern char gKernelEnd[]; @@ -118,13 +117,14 @@ void Arch_LoadBootModules(void) // Unmap and free numPages = (gaArch_BootModules[i].Size + ((Uint)gaArch_BootModules[i].Base&0xFFF) + 0xFFF) >> 12; - MM_UnmapHWPages( (tVAddr)gaArch_BootModules[i].Base, numPages ); + MM_UnmapHWPages( gaArch_BootModules[i].Base, numPages ); for( j = 0; j < numPages; j++ ) MM_DerefPhys( gaArch_BootModules[i].PBase + (j << 12) ); + // TODO: What the fuck? if( (tVAddr) gaArch_BootModules[i].ArgString < KERNEL_BASE ) - MM_UnmapHWPages( (tVAddr)gaArch_BootModules[i].ArgString, 2 ); + MM_UnmapHWPages( gaArch_BootModules[i].ArgString, 2 ); } Log_Log("Arch", "Boot modules loaded"); if( gaArch_BootModules )