pm: remove dead minix_munmap functions

This commit is contained in:
Arun Thomas
2011-11-02 18:43:59 +01:00
parent 1992529666
commit 62841e2935
2 changed files with 5 additions and 24 deletions
+2 -23
View File
@@ -30,12 +30,6 @@
#include "kernel/type.h"
#include "kernel/proc.h"
#define minix_munmap _minix_munmap
#define minix_munmap_text _minix_munmap_text
#include <sys/mman.h>
#undef minix_munmap
#undef minix_munmap_text
/*===========================================================================*
* get_free_pid *
*===========================================================================*/
@@ -154,21 +148,6 @@ message *m_ptr;
rmp->mp_flags |= VFS_CALL;
}
#if !defined(__ELF__)
int unmap_ok = 0;
PUBLIC int minix_munmap(void *addrstart, vir_bytes len)
{
if(!unmap_ok)
return ENOSYS;
return _minix_munmap(addrstart, len);
}
PUBLIC int minix_munmap_text(void *addrstart, vir_bytes len)
{
if(!unmap_ok)
return ENOSYS;
return _minix_munmap_text(addrstart, len);
}
#endif