Changeset 2057572 in mainline for kernel/generic/src/mm/backend_elf.c
- Timestamp:
- 2007-03-27T23:40:25Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 399ece9
- Parents:
- 8d37a06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_elf.c
r8d37a06 r2057572 209 209 if (!used_space_insert(area, ALIGN_DOWN(addr, PAGE_SIZE), 1)) 210 210 panic("Could not insert used space.\n"); 211 212 #ifdef CONFIG_VIRT_IDX_DCACHE213 if (dirty && PAGE_COLOR(PA2KA(frame)) != PAGE_COLOR(addr)) {214 /*215 * By writing to the frame using kernel virtual address,216 * we have created an illegal virtual alias. We now have to217 * invalidate cachelines belonging to addr on all processors218 * so that they will be reloaded with the new content on next219 * read.220 */221 dcache_flush_frame(addr, frame);222 dcache_shootdown_start(DCACHE_INVL_FRAME, PAGE_COLOR(addr), frame);223 dcache_shootdown_finalize();224 }225 #endif226 211 227 212 return AS_PF_OK; … … 356 341 /** @} 357 342 */ 358
Note:
See TracChangeset
for help on using the changeset viewer.