Fixed a bug that caused physical memory allocation to be one-time use
authorJohn Hodge <tpg@prelude.(none)>
Sat, 2 Jan 2010 05:17:30 +0000 (13:17 +0800)
committerJohn Hodge <tpg@prelude.(none)>
Sat, 2 Jan 2010 05:17:30 +0000 (13:17 +0800)
Kernel/Makefile.BuildNum
Kernel/arch/x86/mm_phys.c

index 40dbf54..fc8e612 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 57
+BUILD_NUM = 59
index bd8d60e..595a5e9 100644 (file)
@@ -352,6 +352,9 @@ void MM_DerefPhys(tPAddr Addr)
        // Lock Structures
        LOCK( &giPhysAlloc );
        
+       if( giLastPossibleFree < Addr )
+               giLastPossibleFree = Addr;
+
        // Dereference
        gaPageReferences[ Addr ] --;
        

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