pm: remove dead minix_munmap functions
This commit is contained in:
parent
1992529666
commit
62841e2935
2 changed files with 5 additions and 24 deletions
|
@ -46,7 +46,9 @@ FORWARD _PROTOTYPE( void handle_vfs_reply, (void) );
|
|||
#define click_to_round_k(n) \
|
||||
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
|
||||
|
||||
#if !defined(__ELF__)
|
||||
extern int unmap_ok;
|
||||
#endif
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
|
@ -307,8 +309,8 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
|
|||
* it on startup. It's best that it's there as crtso.o knows exactly
|
||||
* what the ranges are of the filler data.
|
||||
*/
|
||||
unmap_ok = 1;
|
||||
#if !defined(__ELF__)
|
||||
unmap_ok = 1;
|
||||
_minix_unmapzero();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue