debug buffer slightly usabler.
[minix.git] / kernel / vm.h
blob9e0b615da9d57fb8f164f9fc5f18c1025b965e4b
2 #ifndef _VM_H
3 #define _VM_H 1
5 #define CHECKRANGE_OR_SUSPEND(pr, start, length, wr) { int mr; \
6 if(vm_running && (mr=vm_checkrange(proc_addr(who_p), pr, start, length, wr, 0)) != OK) { \
7 return mr; \
8 } }
10 #define CHECKRANGE(pr, start, length, wr) \
11 vm_checkrange(proc_addr(who_p), pr, start, length, wr, 1)
13 /* Pseudo error code indicating a process request has to be
14 * restarted after an OK from VM.
16 #define VMSUSPEND -996
18 #endif