Changeset 0a208110 in mainline for kernel/generic/src/mm/page.c
- Timestamp:
- 2012-02-24T18:04:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2578199
- Parents:
- b9bbaad (diff), 087768f (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/generic/src/mm/page.c
rb9bbaad r0a208110 168 168 int page_find_mapping(uintptr_t virt, void **phys) 169 169 { 170 mutex_lock(&AS->lock);170 page_table_lock(AS, true); 171 171 172 172 pte_t *pte = page_mapping_find(AS, virt, false); 173 173 if ((!PTE_VALID(pte)) || (!PTE_PRESENT(pte))) { 174 mutex_unlock(&AS->lock);174 page_table_unlock(AS, true); 175 175 return ENOENT; 176 176 } … … 179 179 (virt - ALIGN_DOWN(virt, PAGE_SIZE)); 180 180 181 mutex_unlock(&AS->lock);181 page_table_unlock(AS, true); 182 182 183 183 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.