From: John Hodge Date: Sat, 2 Jan 2010 05:17:30 +0000 (+0800) Subject: Fixed a bug that caused physical memory allocation to be one-time use X-Git-Tag: rel0.06~339 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3e283fbc68969202e0a582e645b8cdd839ddd29b;p=tpg%2Facess2.git Fixed a bug that caused physical memory allocation to be one-time use --- diff --git a/Kernel/Makefile.BuildNum b/Kernel/Makefile.BuildNum index 40dbf54a..fc8e6128 100644 --- a/Kernel/Makefile.BuildNum +++ b/Kernel/Makefile.BuildNum @@ -1 +1 @@ -BUILD_NUM = 57 +BUILD_NUM = 59 diff --git a/Kernel/arch/x86/mm_phys.c b/Kernel/arch/x86/mm_phys.c index bd8d60e4..595a5e97 100644 --- a/Kernel/arch/x86/mm_phys.c +++ b/Kernel/arch/x86/mm_phys.c @@ -352,6 +352,9 @@ void MM_DerefPhys(tPAddr Addr) // Lock Structures LOCK( &giPhysAlloc ); + if( giLastPossibleFree < Addr ) + giLastPossibleFree = Addr; + // Dereference gaPageReferences[ Addr ] --;