Changeset 98000fb in mainline for kernel/genarch/src/mm/page_ht.c
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r69e68e3 r98000fb 52 52 #include <align.h> 53 53 54 static index_t hash(unative_t key[]);55 static bool compare(unative_t key[], count_t keys, link_t *item);54 static size_t hash(unative_t key[]); 55 static bool compare(unative_t key[], size_t keys, link_t *item); 56 56 static void remove_callback(link_t *item); 57 57 … … 94 94 * @return Index into page hash table. 95 95 */ 96 index_t hash(unative_t key[])96 size_t hash(unative_t key[]) 97 97 { 98 98 as_t *as = (as_t *) key[KEY_AS]; 99 99 uintptr_t page = (uintptr_t) key[KEY_PAGE]; 100 index_t index;100 size_t index; 101 101 102 102 /* … … 125 125 * @return true on match, false otherwise. 126 126 */ 127 bool compare(unative_t key[], count_t keys, link_t *item)127 bool compare(unative_t key[], size_t keys, link_t *item) 128 128 { 129 129 pte_t *t;
Note:
See TracChangeset
for help on using the changeset viewer.