Changeset cfe7716 in mainline for uspace/lib/libc/generic/ddi.c


Ignore:
Timestamp:
2010-04-29T14:13:28Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f8b581
Parents:
953bc1ef
Message:

backup (unstable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ddi.c

    r953bc1ef rcfe7716  
    105105}
    106106
    107 /** Enable/disable interrupt.
     107/** Enable an interrupt.
    108108 *
    109109 * @param irq the interrupt.
    110  * @param enable 1 - enable interrupt, 0 - disable interrupt.
    111110 *
    112111 * @return Zero on success, negative error code otherwise.
    113112 */
    114 int interrupt_enable(int irq, int enable)
     113int interrupt_enable(int irq)
    115114{
    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 */
     124int interrupt_disable(int irq)
     125{
     126        return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 0);
    117127}
    118128
Note: See TracChangeset for help on using the changeset viewer.