Changes in kernel/generic/src/ipc/irq.c [fafb8e5:fc0de8c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
rfafb8e5 rfc0de8c 223 223 * 224 224 */ 225 static irq_code_t *code_from_uspace( irq_code_t *ucode)225 static irq_code_t *code_from_uspace(uspace_ptr_irq_code_t ucode) 226 226 { 227 227 irq_pio_range_t *ranges = NULL; … … 242 242 if (!ranges) 243 243 goto error; 244 rc = copy_from_uspace(ranges, code->ranges,244 rc = copy_from_uspace(ranges, (uintptr_t) code->ranges, 245 245 sizeof(code->ranges[0]) * code->rangecount); 246 246 if (rc != EOK) … … 250 250 if (!cmds) 251 251 goto error; 252 rc = copy_from_uspace(cmds, code->cmds,252 rc = copy_from_uspace(cmds, (uintptr_t) code->cmds, 253 253 sizeof(code->cmds[0]) * code->cmdcount); 254 254 if (rc != EOK) … … 306 306 } 307 307 308 statickobject_ops_t irq_kobject_ops = {308 kobject_ops_t irq_kobject_ops = { 309 309 .destroy = irq_destroy 310 310 }; … … 323 323 */ 324 324 errno_t ipc_irq_subscribe(answerbox_t *box, inr_t inr, sysarg_t imethod, 325 irq_code_t *ucode, cap_irq_handle_t *uspace_handle)325 uspace_ptr_irq_code_t ucode, uspace_ptr_cap_irq_handle_t uspace_handle) 326 326 { 327 327 if ((inr < 0) || (inr > last_inr)) … … 385 385 irq_spinlock_unlock(&irq_uspace_hash_table_lock, true); 386 386 387 kobject_initialize(kobject, KOBJECT_TYPE_IRQ, irq , &irq_kobject_ops);387 kobject_initialize(kobject, KOBJECT_TYPE_IRQ, irq); 388 388 cap_publish(TASK, handle, kobject); 389 389
Note:
See TracChangeset
for help on using the changeset viewer.