ia64/xen-unstable

changeset 6350:f80278e5e440

Don't mask off arbitrary error-code bits in i386 xenlinux
page fault handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Aug 23 17:28:53 2005 +0000 (2005-08-23)
parents 017a3a97ace2
children a0b4156cc0ce
files linux-2.6-xen-sparse/arch/xen/i386/mm/fault.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/fault.c	Tue Aug 23 17:28:10 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/fault.c	Tue Aug 23 17:28:53 2005 +0000
     1.3 @@ -281,7 +281,7 @@ fastcall void do_page_fault(struct pt_re
     1.4  	siginfo_t info;
     1.5  
     1.6  	/* Set the "privileged fault" bit to something sane. */
     1.7 -	error_code &= 3;
     1.8 +	error_code &= ~4;
     1.9  	error_code |= (regs->xcs & 2) << 1;
    1.10  	if (regs->eflags & X86_EFLAGS_VM)
    1.11  		error_code |= 4;