Changeset ea28272 in mainline for kernel/genarch/src/mm/page_ht.c
- Timestamp:
- 2010-12-30T13:43:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d770deb
- Parents:
- d70d80ed (diff), f418e51 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
rd70d80ed rea28272 52 52 #include <align.h> 53 53 54 static size_t hash( unative_t[]);55 static bool compare( unative_t[], size_t, link_t *);54 static size_t hash(sysarg_t[]); 55 static bool compare(sysarg_t[], size_t, link_t *); 56 56 static void remove_callback(link_t *); 57 57 … … 96 96 * 97 97 */ 98 size_t hash( unative_t key[])98 size_t hash(sysarg_t key[]) 99 99 { 100 100 as_t *as = (as_t *) key[KEY_AS]; … … 115 115 * 116 116 */ 117 index |= (( unative_t) as) & (PAGE_HT_ENTRIES - 1);117 index |= ((sysarg_t) as) & (PAGE_HT_ENTRIES - 1); 118 118 119 119 return index; … … 129 129 * 130 130 */ 131 bool compare( unative_t key[], size_t keys, link_t *item)131 bool compare(sysarg_t key[], size_t keys, link_t *item) 132 132 { 133 133 ASSERT(item); … … 180 180 unsigned int flags) 181 181 { 182 unative_t key[2] = {182 sysarg_t key[2] = { 183 183 (uintptr_t) as, 184 184 page = ALIGN_DOWN(page, PAGE_SIZE) … … 220 220 void ht_mapping_remove(as_t *as, uintptr_t page) 221 221 { 222 unative_t key[2] = {222 sysarg_t key[2] = { 223 223 (uintptr_t) as, 224 224 page = ALIGN_DOWN(page, PAGE_SIZE) … … 247 247 pte_t *ht_mapping_find(as_t *as, uintptr_t page) 248 248 { 249 unative_t key[2] = {249 sysarg_t key[2] = { 250 250 (uintptr_t) as, 251 251 page = ALIGN_DOWN(page, PAGE_SIZE)
Note:
See TracChangeset
for help on using the changeset viewer.