X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fmm_phys.c;h=81edcf2c3dbb08b6f5dfdebf197a6f7a5d374faa;hb=a20cfd571f504f5c7f2d29516442a12c200441d5;hp=cd4187e5707b6847c3927ef00054b9a12b39d024;hpb=95d6bcfbf5ff9d9921ca70997a64f2580d1f91a7;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/mm_phys.c b/Kernel/arch/x86/mm_phys.c index cd4187e5..81edcf2c 100644 --- a/Kernel/arch/x86/mm_phys.c +++ b/Kernel/arch/x86/mm_phys.c @@ -12,7 +12,7 @@ // === IMPORTS === -extern void gKernelEnd; +extern char gKernelEnd[]; extern void Proc_PrintBacktrace(void); // === PROTOTYPES === @@ -420,10 +420,10 @@ void MM_RefPhys(tPAddr PAddr) { int i, base; tVAddr addr = ((tVAddr)&gaPageReferences[PAddr]) & ~0xFFF; - Log_Debug("PMem", "MM_RefPhys: Allocating info for %X", PAddr); +// Log_Debug("PMem", "MM_RefPhys: Allocating info for %X", PAddr); Mutex_Release( &glPhysAlloc ); if( MM_Allocate( addr ) == 0 ) { - Log_KernelPanic("PMem", "MM_RefPhys: Out of physical memory"); + Log_KernelPanic("PMem", "MM_RefPhys: Out of physical memory allocating info for %X", PAddr*PAGE_SIZE); } Mutex_Acquire( &glPhysAlloc );