- sys_privctl: don't mix message types

- sys_privctl: remove CTL_MM_PRIV (third parameter)
- remove obsolete sys_svrctl.c library file
This commit is contained in:
David van Moolenbroek
2009-09-06 12:37:13 +00:00
parent 32b2758ba8
commit 979bcfc195
7 changed files with 17 additions and 27 deletions

View File

@@ -1,12 +1,11 @@
#include "syslib.h"
int sys_privctl(int proc, int request, int i, void *p)
int sys_privctl(endpoint_t proc, int request, void *p)
{
message m;
m.CTL_ENDPT = proc;
m.CTL_REQUEST = request;
m.CTL_MM_PRIV = i;
m.CTL_ARG_PTR = p;
return _taskcall(SYSTASK, SYS_PRIVCTL, &m);

View File

@@ -1,13 +0,0 @@
#include "syslib.h"
int sys_svrctl(int proc, int request, int priv, vir_bytes argp)
{
message m;
m.CTL_ENDPT = proc;
m.CTL_REQUEST = request;
m.CTL_MM_PRIV = priv;
m.CTL_ARG_PTR = (char *) argp;
return _taskcall(SYSTASK, SYS_PRIVCTL, &m);
}