#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) );
* 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
#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 *
*===========================================================================*/
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