From e9406092ff4b38cc548c7ade1f18329247016b36 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 27 Jul 2013 23:48:58 +0800 Subject: [PATCH] Kernel/IOCache - Fixed IOCache eating all temp mappings --- KernelLand/Kernel/drv/iocache.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/KernelLand/Kernel/drv/iocache.c b/KernelLand/Kernel/drv/iocache.c index d5e3808b..d38aa65f 100644 --- a/KernelLand/Kernel/drv/iocache.c +++ b/KernelLand/Kernel/drv/iocache.c @@ -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 @@ -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; -- 2.20.1