diff TaskManager/kernel/memory/MemHash.h @ 1123:2a63ba2c9506 draft

bug fix.
author yutaka@localhost.localdomain
date Fri, 11 Feb 2011 06:09:32 +0900
parents 188e8bc16aca
children 801d57ae1e29
line wrap: on
line diff
--- a/TaskManager/kernel/memory/MemHash.h	Tue Feb 01 15:50:10 2011 +0900
+++ b/TaskManager/kernel/memory/MemHash.h	Fri Feb 11 06:09:32 2011 +0900
@@ -13,14 +13,18 @@
 public:
     void clear(void);
     unsigned int hash(memaddr data);
+    unsigned int hash2(memaddr data);
     int put(memaddr addr, MemorySegmentPtr ms);
+    int put2(memaddr addr, MemorySegmentPtr ms);
     MemorySegmentPtr get(memaddr addr);
+    MemorySegmentPtr get2(memaddr addr);
     void remove(memaddr addr);
 };
 
 typedef MemHash* MemHashPtr;
 
 const int hashSize = 263;
+
 const int tableSize = sizeof(MemorySegmentPtr)*hashSize;
 
 #endif