Changeset 953bc1ef in mainline for uspace


Ignore:
Timestamp:
2010-04-29T08:34:29Z (16 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

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/syscalls.c

    r5af21c5 r953bc1ef  
    7474    [SYS_IOSPACE_ENABLE] = { "iospace_enable",          1,      V_ERRNO },
    7575    [SYS_PREEMPT_CONTROL] = { "preempt_control",        1,      V_ERRNO },
     76        [SYS_INTERRUPT_ENABLE] = { "interrupt_enable",  2,      V_ERRNO },
    7677
    7778    [SYS_SYSINFO_VALID] = { "sysinfo_valid",            2,      V_HASH },
  • 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 *
  • uspace/lib/libc/include/ddi.h

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