Changeset 06b0211b in mainline for kernel/generic/src/mm/backend_anon.c
- Timestamp:
- 2013-04-29T11:29:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aa2b32c
- Parents:
- ba4799a (diff), df956b9b (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/backend_anon.c
rba4799a r06b0211b 173 173 * 174 174 * @param area Pointer to the address space area. 175 * @param addr Faulting virtual address.175 * @param upage Faulting virtual page. 176 176 * @param access Access mode that caused the fault (i.e. read/write/exec). 177 177 * … … 179 179 * serviced). 180 180 */ 181 int anon_page_fault(as_area_t *area, uintptr_t addr, pf_access_t access) 182 { 183 uintptr_t upage = ALIGN_DOWN(addr, PAGE_SIZE); 181 int anon_page_fault(as_area_t *area, uintptr_t upage, pf_access_t access) 182 { 184 183 uintptr_t kpage; 185 184 uintptr_t frame; … … 187 186 ASSERT(page_table_locked(AS)); 188 187 ASSERT(mutex_locked(&area->lock)); 188 ASSERT(IS_ALIGNED(upage, PAGE_SIZE)); 189 189 190 190 if (!as_area_check_access(area, access))
Note:
See TracChangeset
for help on using the changeset viewer.