ia64/xen-unstable

changeset 3394:acf0fa185f4a

bitkeeper revision 1.1159.170.81 (41df3d62qbgOxejO_eV2MdPu54MhSA)

Revert bogus shadow 'fix'.
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jan 08 01:54:42 2005 +0000 (2005-01-08)
parents 4fd2ed499452
children 1c0155635933
files xen/arch/x86/shadow.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Thu Jan 06 20:50:59 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Sat Jan 08 01:54:42 2005 +0000
     1.3 @@ -517,10 +517,10 @@ static void shadow_map_l1_into_current_l
     1.4              mk_l2_pgentry(spde);
     1.5  
     1.6          gpl1e = (unsigned long *) &(linear_pg_table[
     1.7 -            (va>>L1_PAGETABLE_SHIFT) & (ENTRIES_PER_L1_PAGETABLE-1)]);
     1.8 +            (va>>L1_PAGETABLE_SHIFT) & ~(ENTRIES_PER_L1_PAGETABLE-1)]);
     1.9  
    1.10          spl1e = (unsigned long *) &(shadow_linear_pg_table[
    1.11 -            (va>>L1_PAGETABLE_SHIFT) & (ENTRIES_PER_L1_PAGETABLE-1)]);
    1.12 +            (va>>L1_PAGETABLE_SHIFT) & ~(ENTRIES_PER_L1_PAGETABLE-1)]);
    1.13  
    1.14          for ( i = 0; i < ENTRIES_PER_L1_PAGETABLE; i++ )
    1.15              l1pte_propagate_from_guest(m, &gpl1e[i], &spl1e[i]);