Changes in kernel/genarch/src/mm/page_ht.c [235e6c7:96b02eb9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r235e6c7 r96b02eb9 58 58 static void ht_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int); 59 59 static void ht_mapping_remove(as_t *, uintptr_t); 60 static pte_t *ht_mapping_find(as_t *, uintptr_t , bool);60 static pte_t *ht_mapping_find(as_t *, uintptr_t); 61 61 62 62 /** … … 214 214 * this call visible. 215 215 * 216 * @param as Address space to w hich page belongs.216 * @param as Address space to wich page belongs. 217 217 * @param page Virtual address of the page to be demapped. 218 218 * … … 237 237 /** Find mapping for virtual page in page hash table. 238 238 * 239 * @param as Address space to which page belongs. 240 * @param page Virtual page. 241 * @param nolock True if the page tables need not be locked. 239 * Find mapping for virtual page. 240 * 241 * @param as Address space to wich page belongs. 242 * @param page Virtual page. 242 243 * 243 244 * @return NULL if there is no such mapping; requested mapping otherwise. 244 245 * 245 246 */ 246 pte_t *ht_mapping_find(as_t *as, uintptr_t page , bool nolock)247 pte_t *ht_mapping_find(as_t *as, uintptr_t page) 247 248 { 248 249 sysarg_t key[2] = { … … 251 252 }; 252 253 253 ASSERT( nolock ||page_table_locked(as));254 ASSERT(page_table_locked(as)); 254 255 255 256 link_t *cur = hash_table_find(&page_ht, key);
Note:
See TracChangeset
for help on using the changeset viewer.