minix/minix/servers/rs/memory.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

25 lines
543 B
C

/* This file contains memory management routines for RS.
*
* Changes:
* Nov 22, 2009: Created (Cristiano Giuffrida)
*/
#include "inc.h"
#define munmap _munmap
#include <sys/mman.h>
#undef munmap
int unmap_ok = 0;
/*===========================================================================*
* munmap *
*===========================================================================*/
int munmap(void *addrstart, vir_bytes len)
{
if(!unmap_ok)
return ENOSYS;
return _munmap(addrstart, len);
}