Changeset 7c506ced in mainline for kernel/generic/src/mm/page.c
- Timestamp:
- 2012-01-29T10:27:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d69c69
- Parents:
- ca3d77a (diff), dc9a3ba (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
rca3d77a r7c506ced 84 84 } 85 85 86 /** Map memory structure87 *88 * Identity-map memory structure89 * considering possible crossings90 * of page boundaries.91 *92 * @param addr Address of the structure.93 * @param size Size of the structure.94 *95 */96 void map_structure(uintptr_t addr, size_t size)97 {98 size_t length = size + (addr - (addr & ~(PAGE_SIZE - 1)));99 size_t cnt = length / PAGE_SIZE + (length % PAGE_SIZE > 0);100 101 size_t i;102 for (i = 0; i < cnt; i++)103 page_mapping_insert(AS_KERNEL, addr + i * PAGE_SIZE,104 addr + i * PAGE_SIZE, PAGE_NOT_CACHEABLE | PAGE_WRITE);105 106 /* Repel prefetched accesses to the old mapping. */107 memory_barrier();108 }109 110 86 /** Insert mapping of page to frame. 111 87 *
Note:
See TracChangeset
for help on using the changeset viewer.