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


Ignore:
Timestamp:
2010-04-29T08:34:29Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfe7716
Parents:
5af21c5
Message:

introduced an 'interrupt_enable' syscall as a temporary solution for enabling/disabling interrupts

File:
1 edited

Legend:

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

    r5af21c5 r953bc1ef  
    105105}
    106106
     107/** Enable/disable interrupt.
     108 *
     109 * @param irq the interrupt.
     110 * @param enable 1 - enable interrupt, 0 - disable interrupt.
     111 *
     112 * @return Zero on success, negative error code otherwise.
     113 */
     114int interrupt_enable(int irq, int enable)
     115{
     116        return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, (sysarg_t) enable);
     117}
     118
    107119/** Enable PIO for specified I/O range.
    108120 *
Note: See TracChangeset for help on using the changeset viewer.