Changeset d5bd8d7 in mainline for kernel/generic/src/mm/backend_phys.c
- Timestamp:
- 2007-03-25T13:02:06Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4638401
- Parents:
- 0f6a3376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_phys.c
r0f6a3376 rd5bd8d7 33 33 /** 34 34 * @file 35 * @brief Backend for address space areas backed by continuous physical memory. 35 * @brief Backend for address space areas backed by continuous physical 36 * memory. 36 37 */ 37 38 … … 63 64 * @param access Access mode that caused the fault (i.e. read/write/exec). 64 65 * 65 * @return AS_PF_FAULT on failure (i.e. page fault) or AS_PF_OK on success (i.e. serviced). 66 * @return AS_PF_FAULT on failure (i.e. page fault) or AS_PF_OK on success (i.e. 67 * serviced). 66 68 */ 67 69 int phys_page_fault(as_area_t *area, uintptr_t addr, pf_access_t access) … … 73 75 74 76 ASSERT(addr - area->base < area->backend_data.frames * FRAME_SIZE); 75 page_mapping_insert(AS, addr, base + (addr - area->base), as_area_get_flags(area)); 77 page_mapping_insert(AS, addr, base + (addr - area->base), 78 as_area_get_flags(area)); 76 79 if (!used_space_insert(area, ALIGN_DOWN(addr, PAGE_SIZE), 1)) 77 80 panic("Could not insert used space.\n");
Note:
See TracChangeset
for help on using the changeset viewer.