ia64/xen-unstable

changeset 19415:4846d7ae75cd

x86_64: Fix handling of DIRECTMAP_VIRT_START in virt_to_maddr().

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 20 08:57:23 2009 +0000 (2009-03-20)
parents 2a373e32b04d
children 58610023919b
files xen/include/asm-x86/x86_64/page.h
line diff
     1.1 --- a/xen/include/asm-x86/x86_64/page.h	Fri Mar 20 08:49:17 2009 +0000
     1.2 +++ b/xen/include/asm-x86/x86_64/page.h	Fri Mar 20 08:57:23 2009 +0000
     1.3 @@ -40,7 +40,7 @@ static inline unsigned long __virt_to_ma
     1.4      ASSERT(va >= XEN_VIRT_START);
     1.5      ASSERT(va < DIRECTMAP_VIRT_END);
     1.6      ASSERT((va < XEN_VIRT_END) || (va >= DIRECTMAP_VIRT_START));
     1.7 -    if ( va > DIRECTMAP_VIRT_START )
     1.8 +    if ( va >= DIRECTMAP_VIRT_START )
     1.9          return va - DIRECTMAP_VIRT_START;
    1.10      return va - XEN_VIRT_START + xen_phys_start;
    1.11  }