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
|
|
|
|
|
|
|
|
EXTERN struct vmproc vmproc[_NR_PROCS+1];
|
|
|
|
|
|
|
|
#if SANITYCHECKS
|
2009-04-22 14:39:29 +02:00
|
|
|
EXTERN int nocheck;
|
2008-11-19 13:26:10 +01:00
|
|
|
u32_t data1[200];
|
|
|
|
#define CHECKADDR 0
|
|
|
|
EXTERN long vm_sanitychecklevel;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define VMP_SYSTEM _NR_PROCS
|
|
|
|
|
|
|
|
/* vm operation mode state and values */
|
|
|
|
EXTERN long vm_paged;
|
2008-12-08 17:43:20 +01:00
|
|
|
EXTERN phys_bytes kernel_top_bytes;
|