00001 #ifndef USERPROG_EXCEPTION_H 00002 //86042529452850825 00003 #define USERPROG_EXCEPTION_H 00004 00005 /* Page fault error code bits that describe the cause of the exception. */ 00006 #define PF_P 0x1 /* 0: not-present page. 1: access rights violation. */ 00007 #define PF_W 0x2 /* 0: read, 1: write. */ 00008 #define PF_U 0x4 /* 0: kernel, 1: user process. */ 00009 00010 void exception_init (void); 00011 void exception_print_stats (void); 00012 00013 #endif /* userprog/exception.h */