ia64/xen-unstable

changeset 1906:b2ef8732a70a

bitkeeper revision 1.1108.15.1 (41051853Nw9Dyat8lzE1v6Ex4on1YA)

Fix loading of kernel images to addresses not aligned on pagetable boundaries.
author cl349@freefall.cl.cam.ac.uk
date Mon Jul 26 14:42:27 2004 +0000 (2004-07-26)
parents 9fd9d87a5a61
children 997d615bd58b
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Fri Jul 23 22:39:55 2004 +0000
     1.2 +++ b/xen/arch/x86/domain.c	Mon Jul 26 14:42:27 2004 +0000
     1.3 @@ -695,6 +695,8 @@ int construct_dom0(struct domain *p,
     1.4              mpt_alloc += PAGE_SIZE;
     1.5              *l2tab++ = mk_l2_pgentry((unsigned long)l1start | L2_PROT);
     1.6              clear_page(l1tab);
     1.7 +            if ( count == 0 )
     1.8 +                l1tab += l1_table_offset(v_start);
     1.9          }
    1.10          *l1tab++ = mk_l1_pgentry((mfn << PAGE_SHIFT) | L1_PROT);
    1.11