1 #include "kernel/system.h"
3 #include <sys/sigcontext.h>
4 #include <minix/endpoint.h>
6 /*===========================================================================*
8 *===========================================================================*/
9 PUBLIC
int do_schedctl(struct proc
* caller
, message
* m_ptr
)
13 /* Only system processes can change process schedulers */
14 if (! (priv(caller
)->s_flags
& SYS_PROC
))
17 p
= proc_addr(_ENDPOINT_P(m_ptr
->SCHEDULING_ENDPOINT
));
18 p
->p_scheduler
= caller
;