vm: fix a null dereference on out-of-memory
[minix.git] / servers / vm / arch / i386 / pagefaults.h
blob4cdc9a61abddb671cf39064c40e6e721781f38d7
2 #ifndef _PAGEFAULTS_H
3 #define _PAGEFAULTS_H 1
5 #include <machine/vm.h>
7 #define PFERR_NOPAGE(e) (!((e) & I386_VM_PFE_P))
8 #define PFERR_PROT(e) (((e) & I386_VM_PFE_P))
9 #define PFERR_WRITE(e) ((e) & I386_VM_PFE_W)
10 #define PFERR_READ(e) (!((e) & I386_VM_PFE_W))
12 #endif