Changeset 874621f in mainline for generic/src/ipc/sysipc.c
- Timestamp:
- 2006-06-06T07:40:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dbc4e7
- Parents:
- 6f9a9bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ipc/sysipc.c
r6f9a9bc r874621f 554 554 555 555 /** Connect irq handler to task */ 556 __native sys_ipc_register_irq( __nativeirq, irq_code_t *ucode)556 __native sys_ipc_register_irq(int irq, irq_code_t *ucode) 557 557 { 558 558 if (!(cap_get(TASK) & CAP_IRQ_REG)) 559 559 return EPERM; 560 560 561 if (irq >= IRQ_COUNT )561 if (irq >= IRQ_COUNT || irq <= -IPC_IRQ_RESERVED_VIRTUAL) 562 562 return (__native) ELIMIT; 563 563 564 564 irq_ipc_bind_arch(irq); 565 565 … … 568 568 569 569 /* Disconnect irq handler from task */ 570 __native sys_ipc_unregister_irq( __nativeirq)570 __native sys_ipc_unregister_irq(int irq) 571 571 { 572 572 if (!(cap_get(TASK) & CAP_IRQ_REG)) 573 573 return EPERM; 574 574 575 if (irq >= IRQ_COUNT )575 if (irq >= IRQ_COUNT || irq <= -IPC_IRQ_RESERVED_VIRTUAL) 576 576 return (__native) ELIMIT; 577 577
Note:
See TracChangeset
for help on using the changeset viewer.