pm: remove dead minix_munmap functions
This commit is contained in:
parent
1992529666
commit
62841e2935
@ -46,7 +46,9 @@ FORWARD _PROTOTYPE( void handle_vfs_reply, (void) );
|
|||||||
#define click_to_round_k(n) \
|
#define click_to_round_k(n) \
|
||||||
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
|
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
|
||||||
|
|
||||||
|
#if !defined(__ELF__)
|
||||||
extern int unmap_ok;
|
extern int unmap_ok;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SEF functions and variables. */
|
/* SEF functions and variables. */
|
||||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
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
|
* it on startup. It's best that it's there as crtso.o knows exactly
|
||||||
* what the ranges are of the filler data.
|
* what the ranges are of the filler data.
|
||||||
*/
|
*/
|
||||||
unmap_ok = 1;
|
|
||||||
#if !defined(__ELF__)
|
#if !defined(__ELF__)
|
||||||
|
unmap_ok = 1;
|
||||||
_minix_unmapzero();
|
_minix_unmapzero();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -30,12 +30,6 @@
|
|||||||
#include "kernel/type.h"
|
#include "kernel/type.h"
|
||||||
#include "kernel/proc.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 *
|
* get_free_pid *
|
||||||
*===========================================================================*/
|
*===========================================================================*/
|
||||||
@ -154,21 +148,6 @@ message *m_ptr;
|
|||||||
rmp->mp_flags |= VFS_CALL;
|
rmp->mp_flags |= VFS_CALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__ELF__)
|
||||||
int unmap_ok = 0;
|
int unmap_ok = 0;
|
||||||
|
#endif
|
||||||
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);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user