Changeset e3c762cd in mainline for generic/src/ddi/ddi.c
- Timestamp:
- 2006-05-05T11:59:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- de07bcf
- Parents:
- 22cf454d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ddi/ddi.c
r22cf454d re3c762cd 41 41 #include <security/cap.h> 42 42 #include <mm/frame.h> 43 #include <mm/page.h>44 43 #include <mm/as.h> 45 44 #include <synch/spinlock.h> 45 #include <syscall/copy.h> 46 46 #include <arch.h> 47 47 #include <align.h> … … 184 184 { 185 185 ddi_memarg_t arg; 186 187 copy_from_uspace(&arg, uspace_mem_arg, sizeof(ddi_memarg_t)); 186 int rc; 187 188 rc = copy_from_uspace(&arg, uspace_mem_arg, sizeof(ddi_memarg_t)); 189 if (rc != 0) 190 return (__native) rc; 191 188 192 return (__native) ddi_physmem_map((task_id_t) arg.task_id, ALIGN_DOWN((__address) arg.phys_base, FRAME_SIZE), 189 193 ALIGN_DOWN((__address) arg.virt_base, PAGE_SIZE), (count_t) arg.pages, … … 200 204 { 201 205 ddi_ioarg_t arg; 202 203 copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 206 int rc; 207 208 rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 209 if (rc != 0) 210 return (__native) rc; 211 204 212 return (__native) ddi_iospace_enable((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size); 205 213 }
Note:
See TracChangeset
for help on using the changeset viewer.