2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
#ifndef _PAGEFAULTS_H
|
|
|
|
#define _PAGEFAULTS_H 1
|
|
|
|
|
2010-03-08 12:04:59 +01:00
|
|
|
#include <machine/vm.h>
|
2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
#define PFERR_NOPAGE(e) (!((e) & I386_VM_PFE_P))
|
|
|
|
#define PFERR_PROT(e) (((e) & I386_VM_PFE_P))
|
|
|
|
#define PFERR_WRITE(e) ((e) & I386_VM_PFE_W)
|
|
|
|
#define PFERR_READ(e) (!((e) & I386_VM_PFE_W))
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|