Changeset f8ddd17 in mainline for kernel/arch/sparc64/src/mm/as.c
- Timestamp:
- 2006-12-09T20:20:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b82a13c
- Parents:
- 9ab9c2ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/as.c
r9ab9c2ec rf8ddd17 49 49 #include <macros.h> 50 50 #endif /* CONFIG_TSB */ 51 52 #ifdef CONFIG_VIRT_IDX_DCACHE53 #include <arch/mm/cache.h>54 #endif /* CONFIG_VIRT_IDX_DCACHE */55 51 56 52 /** Architecture dependent address space init. */ … … 163 159 dtsb_base_write(tsb_base.value); 164 160 #endif 165 #ifdef CONFIG_VIRT_IDX_DCACHE166 if (as->dcache_flush_on_install) {167 /*168 * Some mappings in this address space are illegal address169 * aliases. Upon their creation, the dcache_flush_on_install170 * flag was set.171 *172 * We are now obliged to flush the D-cache in order to guarantee173 * that there will be at most one cache line for each address174 * alias.175 *176 * This flush performs a cleanup after another address space in177 * which the alias might have existed.178 */179 dcache_flush();180 }181 #endif /* CONFIG_VIRT_IDX_DCACHE */182 161 } 183 162 … … 214 193 } 215 194 #endif 216 #ifdef CONFIG_VIRT_IDX_DCACHE217 if (as->dcache_flush_on_deinstall) {218 /*219 * Some mappings in this address space are illegal address220 * aliases. Upon their creation, the dcache_flush_on_deinstall221 * flag was set.222 *223 * We are now obliged to flush the D-cache in order to guarantee224 * that there will be at most one cache line for each address225 * alias.226 *227 * This flush performs a cleanup after this address space. It is228 * necessary because other address spaces that contain the same229 * alias are not necessarily aware of the need to carry out the230 * cache flush. The only address spaces that are aware of it are231 * those that created the illegal alias.232 */233 dcache_flush();234 }235 #endif /* CONFIG_VIRT_IDX_DCACHE */236 195 } 237 196
Note:
See TracChangeset
for help on using the changeset viewer.