68d0c4defe
their own fully fledged virtual address space and freeing their pre-allocated heap+stack area (necessary to let memory driver map in arbitrary areas of memory for /dev/mem without sys_vm_map) - small optimization preallocating memory on exec - finished VR_DIRECT physical mapping code
29 lines
463 B
C
29 lines
463 B
C
|
|
#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
|
|
u32_t data1[200];
|
|
#define CHECKADDR 0
|
|
EXTERN long vm_sanitychecklevel;
|
|
#endif
|
|
|
|
int verbosealloc;
|
|
|
|
#define VMP_SYSTEM _NR_PROCS
|
|
|
|
/* vm operation mode state and values */
|
|
EXTERN long vm_paged;
|
|
EXTERN phys_bytes kernel_top_bytes;
|