c078ec0331
Not complete, probably not fully debugged or optimized.
20 lines
477 B
C
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;
|
|
}
|
|
|