/uspace/trunk/libc/generic/ddi.c |
---|
87,7 → 87,7 |
* |
* @param enable 1 - enable interrupts, 0 - disable interrupts |
*/ |
int preemption_control(int enable) |
int interrupt_control(int enable) |
{ |
return __SYSCALL1(SYS_PREEMPT_CONTROL, (sysarg_t) enable); |
return __SYSCALL1(SYS_INT_CONTROL, (sysarg_t) enable); |
} |
/uspace/trunk/libc/include/ddi.h |
---|
33,6 → 33,6 |
extern int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable); |
extern int iospace_enable(task_id_t id, void *ioaddr, unsigned long size); |
extern int preemption_control(int enable); |
extern int interrupt_control(int enable); |
#endif |
/uspace/trunk/init/init.c |
---|
37,7 → 37,6 |
#include <psthread.h> |
#include <futex.h> |
#include <as.h> |
#include <ddi.h> |
int a; |
atomic_t ftx; |