ia64/xen-unstable

changeset 4327:4a339d097802

bitkeeper revision 1.1236.43.10 (42441785goVzEeVsbXZ1yuI--vCldQ)

Clean ptwr flush error path: it has a lot in common with the normal
exit path.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 25 13:52:05 2005 +0000 (2005-03-25)
parents 148aec70383c
children f71b1114a5c3
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Fri Mar 25 13:46:25 2005 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Fri Mar 25 13:52:05 2005 +0000
     1.3 @@ -2392,15 +2392,8 @@ void ptwr_flush(const int which)
     1.4               */
     1.5              memcpy(&pl1e[i], &ptwr_info[cpu].ptinfo[which].page[i],
     1.6                     (L1_PAGETABLE_ENTRIES - i) * sizeof(l1_pgentry_t));
     1.7 -            unmap_domain_mem(pl1e);
     1.8 -            ptwr_info[cpu].ptinfo[which].l1va = 0;
     1.9 -            if ( (which == PTWR_PT_ACTIVE) && likely(!d->mm.shadow_mode) )
    1.10 -            {
    1.11 -                pl2e = &linear_l2_table[ptwr_info[cpu].ptinfo[which].l2_idx];
    1.12 -                *pl2e = mk_l2_pgentry(l2_pgentry_val(*pl2e) | _PAGE_PRESENT); 
    1.13 -            }
    1.14              domain_crash();
    1.15 -            return;
    1.16 +            break;
    1.17          }
    1.18          
    1.19          if ( unlikely(sl1e != NULL) )