ia64/xen-unstable

changeset 15905:45dbef0ab7a6

[XEN] Fix assert in typed p2m code
as spotted by GCC-4's enthusiastic warnings.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Wed Sep 12 09:58:16 2007 +0100 (2007-09-12)
parents a00cc97b392a
children 9dd580b8b056
files xen/include/asm-x86/p2m.h
line diff
     1.1 --- a/xen/include/asm-x86/p2m.h	Wed Sep 12 09:43:33 2007 +0100
     1.2 +++ b/xen/include/asm-x86/p2m.h	Wed Sep 12 09:58:16 2007 +0100
     1.3 @@ -119,7 +119,7 @@ static inline mfn_t gfn_to_mfn_current(u
     1.4  
     1.5          if ( ret == 0 ) {
     1.6              p2mt = p2m_flags_to_type(l1e_get_flags(l1e));
     1.7 -            ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(*t));
     1.8 +            ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(p2mt));
     1.9              if ( p2m_is_valid(p2mt) )
    1.10                  mfn = _mfn(l1e_get_pfn(l1e));
    1.11              else