Changeset 2057572 in mainline for kernel/generic/src/ddi/ddi.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/ddi/ddi.c
r8d37a06 r2057572 100 100 * syscall, ENOENT if there is no task matching the specified ID or the 101 101 * physical address space is not enabled for mapping and ENOMEM if there 102 * was a problem in creating address space area. ENOTSUP is returned when 103 * an attempt to create an illegal address alias is detected. 102 * was a problem in creating address space area. 104 103 */ 105 104 static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, count_t pages, int flags) … … 140 139 return ENOENT; 141 140 } 142 143 #ifdef CONFIG_VIRT_IDX_DCACHE144 if (PAGE_COLOR(parea->vbase) != PAGE_COLOR(vp)) {145 /*146 * Refuse to create an illegal address alias.147 */148 spinlock_unlock(&parea_lock);149 interrupts_restore(ipl);150 return ENOTSUP;151 }152 #endif /* CONFIG_VIRT_IDX_DCACHE */153 154 141 spinlock_unlock(&parea_lock); 155 142
Note:
See TracChangeset
for help on using the changeset viewer.