Changeset a2a46ba in mainline
- Timestamp:
- 2006-03-09T22:17:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9faddb3
- Parents:
- 901122b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/page_ht.c
r901122b ra2a46ba 42 42 #include <memstr.h> 43 43 #include <adt/hash_table.h> 44 #include <align.h> 44 45 45 46 static index_t hash(__native key[]); … … 165 166 { 166 167 pte_t *t; 167 __native key[2] = { (__address) as, page };168 __native key[2] = { (__address) as, page = ALIGN_DOWN(page, PAGE_SIZE) }; 168 169 169 170 spinlock_lock(&page_ht_lock); … … 203 204 void ht_mapping_remove(as_t *as, __address page) 204 205 { 205 __native key[2] = { (__address) as, page };206 __native key[2] = { (__address) as, page = ALIGN_DOWN(page, PAGE_SIZE) }; 206 207 207 208 spinlock_lock(&page_ht_lock); … … 232 233 link_t *hlp; 233 234 pte_t *t = NULL; 234 __native key[2] = { (__address) as, page };235 __native key[2] = { (__address) as, page = ALIGN_DOWN(page, PAGE_SIZE) }; 235 236 236 237 spinlock_lock(&page_ht_lock);
Note:
See TracChangeset
for help on using the changeset viewer.