X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=KernelLand%2FKernel%2Farch%2Fx86%2Fmm_phys.c;h=2b2a76491f559a3011725dd015923792e7585b86;hb=479d0634670b58da044bc58149662adba0ad1d0b;hp=f785ba4537e994c10b212b4047858ef404a2e5de;hpb=f250b00368956c84eff7ad303ce9a1d011c83d11;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86/mm_phys.c b/KernelLand/Kernel/arch/x86/mm_phys.c index f785ba45..2b2a7649 100644 --- a/KernelLand/Kernel/arch/x86/mm_phys.c +++ b/KernelLand/Kernel/arch/x86/mm_phys.c @@ -101,6 +101,7 @@ void MM_Install(int NPMemRanges, tPMemMapEnt *PMemRanges) gaPageReferences = (void*)MM_REFCOUNT_BASE; + Log_Debug("PMem", "maxAddr = %P", maxAddr); Log_Log("PMem", "Physical memory set up (%lli pages of ~%lli MiB used)", giPhysAlloc, (giTotalMemorySize*PAGE_SIZE)/(1024*1024) ); @@ -240,6 +241,8 @@ tPAddr MM_AllocPhys(void) Mutex_Release( &glPhysAlloc ); LEAVE('X', ret); + if( ret == 0x17FFE000 ) + LogF("TRIP!\n"); #if TRACE_ALLOCS if( now() > 4000 ) { Log_Debug("PMem", "MM_AllocPhys: RETURN %P (%i free)", ret, giPageCount-giPhysAlloc);