minix/lib/syslib/vm_allocmem.c

22 lines
528 B
C
Raw Normal View History

#include "syslib.h"
#include <minix/vm.h>
/*===========================================================================*
* vm_allocmem *
*===========================================================================*/
PUBLIC int vm_allocmem(phys_clicks bytes, phys_clicks *retmembase)
{
message m;
int result;
2009-10-05 18:40:21 +02:00
m.VMAM_BYTES = (char *) bytes;
result = _taskcall(VM_PROC_NR, VM_ALLOCMEM, &m);
if(result == OK)
*retmembase = m.VMAM_MEMBASE;
return result;
}