2011-03-22 14:47:35 +01:00
|
|
|
#include <lib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2013-08-07 22:03:47 +02:00
|
|
|
int vm_set_priv(endpoint_t ep, void *buf, int sys_proc)
|
2011-03-22 14:47:35 +01:00
|
|
|
{
|
|
|
|
message m;
|
2013-08-07 22:03:47 +02:00
|
|
|
m.VM_RS_NR = ep;
|
2011-03-22 14:47:35 +01:00
|
|
|
m.VM_RS_BUF = (long) buf;
|
2013-08-07 22:03:47 +02:00
|
|
|
m.VM_RS_SYS = sys_proc;
|
2011-03-22 14:47:35 +01:00
|
|
|
return _syscall(VM_PROC_NR, VM_RS_SET_PRIV, &m);
|
|
|
|
}
|
|
|
|
|