Changeset cfe7716 in mainline for uspace/lib/libc/generic/ddi.c
- Timestamp:
- 2010-04-29T14:13:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f8b581
- Parents:
- 953bc1ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/ddi.c
r953bc1ef rcfe7716 105 105 } 106 106 107 /** Enable /disableinterrupt.107 /** Enable an interrupt. 108 108 * 109 109 * @param irq the interrupt. 110 * @param enable 1 - enable interrupt, 0 - disable interrupt.111 110 * 112 111 * @return Zero on success, negative error code otherwise. 113 112 */ 114 int interrupt_enable(int irq , int enable)113 int interrupt_enable(int irq) 115 114 { 116 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, (sysarg_t) enable); 115 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 1); 116 } 117 118 /** Disable an interrupt. 119 * 120 * @param irq the interrupt. 121 * 122 * @return Zero on success, negative error code otherwise. 123 */ 124 int interrupt_disable(int irq) 125 { 126 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 0); 117 127 } 118 128
Note:
See TracChangeset
for help on using the changeset viewer.