ia64/xen-unstable

changeset 11628:bdf3bddc97e7

[VMXASSIST] Small fix to virt-to-phys translation.
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Sep 26 08:36:39 2006 +0100 (2006-09-26)
parents b042bf974f3a
children 184884cfaa0b
files tools/firmware/vmxassist/vm86.c
line diff
     1.1 --- a/tools/firmware/vmxassist/vm86.c	Tue Sep 26 08:34:52 2006 +0100
     1.2 +++ b/tools/firmware/vmxassist/vm86.c	Tue Sep 26 08:36:39 2006 +0100
     1.3 @@ -95,7 +95,7 @@ guest_linear_to_real(uint32_t base)
     1.4  		if (!(l1_mfn & PT_ENTRY_PRESENT))
     1.5  			panic("l2 entry not present\n");
     1.6  
     1.7 -		if ((oldctx.cr4 & CR4_PSE) && (l1_mfn & PDE_PS)) {
     1.8 +		if (l1_mfn & PDE_PS) { /* CR4.PSE is ignored in PAE mode */
     1.9  			l0_mfn = l1_mfn & 0x3ffe00000ULL;
    1.10  			return l0_mfn + (base & 0x1fffff);
    1.11  		}