Changeset f619ec11 in mainline for kernel/generic/src/ddi/ddi.c
- Timestamp:
- 2007-02-03T21:26:54Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf5ddf6
- Parents:
- 80bcaed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
r80bcaed rf619ec11 131 131 parea = btree_search(&parea_btree, (btree_key_t) pf, &nodep); 132 132 if (!parea || parea->frames < pages || ((flags & AS_AREA_CACHEABLE) && 133 134 133 !parea->cacheable) || (!(flags & AS_AREA_CACHEABLE) && 134 parea->cacheable)) { 135 135 /* 136 136 * This physical memory area cannot be mapped. … … 235 235 * @return 0 on success, otherwise it returns error code found in errno.h 236 236 */ 237 unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t238 237 unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, 238 unative_t pages, unative_t flags) 239 239 { 240 240 return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, 241 242 241 FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), 242 (count_t) pages, (int) flags); 243 243 } 244 244 … … 259 259 260 260 return (unative_t) ddi_iospace_enable((task_id_t) arg.task_id, 261 261 (uintptr_t) arg.ioaddr, (size_t) arg.size); 262 262 } 263 263 … … 272 272 unative_t sys_preempt_control(int enable) 273 273 { 274 if (! 274 if (!cap_get(TASK) & CAP_PREEMPT_CONTROL) 275 275 return EPERM; 276 276 if (enable)
Note:
See TracChangeset
for help on using the changeset viewer.