Changeset cfe7716 in mainline for uspace/lib/libc


Ignore:
Timestamp:
2010-04-29T14:13:28Z (15 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)

Location:
uspace/lib/libc
Files:
2 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
  • uspace/lib/libc/include/ddi.h

    r953bc1ef rcfe7716  
    4343extern int preemption_control(int);
    4444extern int pio_enable(void *, size_t, void **);
    45 extern int interrupt_enable(int, int);
     45extern int interrupt_enable(int);
     46extern int interrupt_disable(int);
    4647
    4748#endif
Note: See TracChangeset for help on using the changeset viewer.