minix/servers/pm/break.c
Ben Gras c078ec0331 Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00

20 lines
477 B
C

#include "pm.h"
#include "param.h"
#include "glo.h"
#include "mproc.h"
#include <minix/vm.h>
/*===========================================================================*
* do_brk *
*===========================================================================*/
PUBLIC int do_brk()
{
int r;
/* Entry point to brk(addr) system call. */
r = vm_brk(mp->mp_endpoint, m_in.addr);
mp->mp_reply.reply_ptr = (r == OK ? m_in.addr : (char *) -1);
return r;
}