VM: full munmap
[minix.git] / servers / rs / memory.c
blobb21d86199541790c277a69a69b60f3e527c1f88a
1 /* This file contains memory management routines for RS.
3 * Changes:
4 * Nov 22, 2009: Created (Cristiano Giuffrida)
5 */
7 #include "inc.h"
9 #define minix_munmap _minix_munmap
10 #include <sys/mman.h>
11 #undef minix_munmap
13 int unmap_ok = 0;
15 /*===========================================================================*
16 * minix_munmap *
17 *===========================================================================*/
18 int minix_munmap(void *addrstart, vir_bytes len)
20 if(!unmap_ok)
21 return ENOSYS;
23 return _minix_munmap(addrstart, len);