X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fiocache.c;h=d38aa65f174587aaff02b8e89a2f1cda8e3a6461;hb=398d01ee119404d9d811f33341dcf474a0794411;hp=d5e3808bdce77787611b9217d1915fe2fefd0fe5;hpb=e92def8552ac172795236e9addeb93cd285d60b7;p=tpg%2Facess2.git 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;