ia64/xen-unstable

changeset 3305:85cbf3821127

bitkeeper revision 1.1159.187.71 (41c82f9fKeodufnpl2tEhvkIWWlYjw)

Fix shadow bug.
author kaf24@scramble.cl.cam.ac.uk
date Tue Dec 21 14:13:51 2004 +0000 (2004-12-21)
parents fc8767574ee6
children d263200ffdc3 dc2f08429f17
files xen/arch/x86/shadow.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Tue Dec 21 14:13:27 2004 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Tue Dec 21 14:13:51 2004 +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>>PAGE_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>>PAGE_SHIFT) & ~(ENTRIES_PER_L1_PAGETABLE-1)];
    1.12 +        spl1e = (unsigned long *) &(shadow_linear_pg_table[
    1.13 +            (va>>L1_PAGETABLE_SHIFT) & (ENTRIES_PER_L1_PAGETABLE-1)]);
    1.14  
    1.15          for ( i = 0; i < ENTRIES_PER_L1_PAGETABLE; i++ )
    1.16              l1pte_propagate_from_guest(m, &gpl1e[i], &spl1e[i]);