From: Dave A. <ai...@us...> - 2001-05-20 13:25:16
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/mm In directory usw-pr-cvs1:/tmp/cvs-serv382 Modified Files: fault.c Log Message: DA: fix incorrect reason defines... assert copyright Index: fault.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/mm/fault.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- fault.c 2001/04/11 21:36:53 1.4 +++ fault.c 2001/05/20 13:25:11 1.5 @@ -2,6 +2,9 @@ * linux/arch/alpha/mm/fault.c * * Copyright (C) 1995 Linus Torvalds + * + * Copyright (C) 2001 Kenn Humborg, Andy Phillips, David Airlie + * (Vax Porting team) */ #include <linux/sched.h> @@ -32,15 +35,15 @@ * it off to handle_mm_fault(). * * reason: - * 0 = length violation - * 1 = fault during PPTE reference - * 2 = fault-on-read if 0, fault-on-write if 1 + * bit 0 = length violation + * bit 1 = fault during PPTE reference + * bit 2 = fault-on-read if 0, fault-on-write if 1 * */ -#define REASON_LENGTH 0 -#define REASON_PPTEREF 1 -#define REASON_WRITE 2 +#define REASON_LENGTH (1<<0) +#define REASON_PPTEREF (1<<1) +#define REASON_WRITE (1<<2) static void |