Kernel/pci - Catch non-assigned BARs with an error
[tpg/acess2.git] / KernelLand / Kernel / drv / iocache.c
index d5e3808..d38aa65 100644 (file)
@@ -1,10 +1,9 @@
 /*
  * Acess2 Kernel
- * - IO Cache
+ * - By thePowersGang (John Hodge)
  * 
- * By thePowersGang (John Hodge)
- * 
- * TODO: Convert to use spare physical pages instead
+ * drv/iocache.c
+ * - Block IO Caching
  */
 #define DEBUG  0
 #include <acess.h>
@@ -265,6 +264,8 @@ int IOCache_Add( tIOCache *Cache, Uint64 Sector, const void *Buffer )
        page->DirtySectors = 0;
        
        memcpy( page_map + offset, Buffer, Cache->SectorSize ); 
+
+       MM_FreeTemp(page_map);
        
        #else
        tIOCache_Ent    *ent, *prev;

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