2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
#include <minix/sys_config.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <a.out.h>
|
|
|
|
#include <tools.h>
|
|
|
|
|
|
|
|
#include "vm.h"
|
|
|
|
#include "vmproc.h"
|
|
|
|
|
|
|
|
#if _MAIN
|
|
|
|
#undef EXTERN
|
|
|
|
#define EXTERN
|
|
|
|
#endif
|
|
|
|
|
2009-09-21 16:49:49 +02:00
|
|
|
#define VMP_SYSTEM _NR_PROCS
|
|
|
|
#define VMP_EXECTMP _NR_PROCS+1
|
|
|
|
#define VMP_NR _NR_PROCS+2
|
|
|
|
|
|
|
|
EXTERN struct vmproc vmproc[VMP_NR];
|
2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
#if SANITYCHECKS
|
2009-04-22 14:39:29 +02:00
|
|
|
EXTERN int nocheck;
|
2009-09-21 16:49:49 +02:00
|
|
|
EXTERN int incheck;
|
2008-11-19 13:26:10 +01:00
|
|
|
EXTERN long vm_sanitychecklevel;
|
|
|
|
#endif
|
|
|
|
|
2010-01-19 22:00:20 +01:00
|
|
|
/* total number of memory pages */
|
|
|
|
EXTERN int total_pages;
|
|
|
|
|
2009-09-21 16:49:49 +02:00
|
|
|
EXTERN int meminit_done;
|