Changeset 3d77747 in mainline


Ignore:
Timestamp:
2006-04-22T18:05:25Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34c4d69
Parents:
1c7da86
Message:

Added uspace call to enable/disable interrupts.

Location:
libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/ddi.c

    r1c7da86 r3d77747  
    8383        return __SYSCALL1(SYS_ENABLE_IOSPACE, (sysarg_t) &arg);
    8484}
     85
     86/** Interrupt control
     87 *
     88 * @param enable 1 - enable interrupts, 0 - disable interrupts
     89 */
     90int interrupt_control(int enable)
     91{
     92        return __SYSCALL1(SYS_INT_CONTROL, (sysarg_t) enable);
     93}
  • libc/include/ddi.h

    r1c7da86 r3d77747  
    3434extern int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable);
    3535extern int enable_iospace(task_id_t id, void *ioaddr, unsigned long size);
     36extern int interrupt_control(int enable);
    3637
    3738#endif
Note: See TracChangeset for help on using the changeset viewer.