Changeset f619ec11 in mainline for kernel/generic
- 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
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/as.h
r80bcaed rf619ec11 168 168 /** Containing address space. */ 169 169 as_t *as; 170 /** Flags related to the memory represented by the address space area. */ 170 /** 171 * Flags related to the memory represented by the address space area. 172 */ 171 173 int flags; 172 174 /** Attributes related to the address space area itself. */ … … 180 182 181 183 /** 182 * If the address space area has been shared, this pointer will reference183 * the share info structure.184 * If the address space area has been shared, this pointer will 185 * reference the share info structure. 184 186 */ 185 187 share_info_t *sh_info; -
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) -
kernel/generic/src/ddi/irq.c
r80bcaed rf619ec11 303 303 spinlock_lock(&irq->lock); 304 304 if (devno == -1) { 305 /* Invoked by irq_dispatch (). */305 /* Invoked by irq_dispatch_and_lock(). */ 306 306 rv = ((irq->inr == inr) && (irq->claim() == IRQ_ACCEPT)); 307 307 } else { 308 /* Invoked by irq_find (). */308 /* Invoked by irq_find_and_lock(). */ 309 309 rv = ((irq->inr == inr) && (irq->devno == devno)); 310 310 } … … 362 362 spinlock_lock(&irq->lock); 363 363 if (devno == -1) { 364 /* Invoked by irq_dispatch () */364 /* Invoked by irq_dispatch_and_lock() */ 365 365 rv = (irq->claim() == IRQ_ACCEPT); 366 366 } else { 367 /* Invoked by irq_find () */367 /* Invoked by irq_find_and_lock() */ 368 368 rv = (irq->devno == devno); 369 369 }
Note:
See TracChangeset
for help on using the changeset viewer.