Changes in kernel/generic/src/mm/page.c [8757be86:0428f77] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/page.c
r8757be86 r0428f77 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.