ia64/xen-unstable

changeset 3385:b0d439448dfe

bitkeeper revision 1.1159.212.7 (41dda285BvmhILeGv4rnjJ6N_psxaA)

Patch from Leendert van Doorn leendert@watson.ibm.com to fix bug that was effecting mapping of IO pages when Xen was built with certain versions of gcc.
author iap10@labyrinth.cl.cam.ac.uk
date Thu Jan 06 20:41:41 2005 +0000 (2005-01-06)
parents 3b51a853296f
children ef529c8bd197
files xen/arch/x86/memory.c
line diff
     1.1 --- a/xen/arch/x86/memory.c	Thu Jan 06 19:41:15 2005 +0000
     1.2 +++ b/xen/arch/x86/memory.c	Thu Jan 06 20:41:41 2005 +0000
     1.3 @@ -467,11 +467,12 @@ static void put_page_from_l1e(l1_pgentry
     1.4      unsigned long    l1v  = l1_pgentry_val(l1e);
     1.5      unsigned long    pfn  = l1_pgentry_to_pagenr(l1e);
     1.6      struct pfn_info *page = &frame_table[pfn];
     1.7 -    struct domain   *e = page->u.inuse.domain;
     1.8 +    struct domain   *e;
     1.9  
    1.10      if ( !(l1v & _PAGE_PRESENT) || !pfn_is_ram(pfn) )
    1.11          return;
    1.12  
    1.13 +    e = page->u.inuse.domain;
    1.14      if ( unlikely(e != d) )
    1.15      {
    1.16          /*