Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1278 → Rev 1277

/kernel/trunk/generic/src/syscall/syscall.c
56,15 → 56,9
return count;
}
 
static __native sys_preempt_control(int enable)
static __native sys_int_control(int enable)
{
if (! cap_get(TASK) & CAP_PREEMPT_CONTROL)
return EPERM;
if (enable)
preemption_enable();
else
preemption_disable();
return 0;
panic("Not implemented.");
}
 
/** Dispatch system call */
80,7 → 74,7
syshandler_t syscall_table[SYSCALL_END] = {
sys_io,
sys_tls_set,
sys_preempt_control,
sys_int_control,
 
/* Thread and task related syscalls. */
sys_thread_create,