direct-io.hg

changeset 4449:50ddc44d3520

bitkeeper revision 1.1236.1.203 (424f103csqM47DQqPr-LyRTrjpJC4g)

Merge 2.0-testing change:
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Add support to domain0 builder to load a (Net)BSD symtab for domain0.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk[cl349]
date Sat Apr 02 21:35:56 2005 +0000 (2005-04-02)
parents ccf5f154c35d
children 540618b2809a 5d6313245c94
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Sat Apr 02 21:30:42 2005 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Sat Apr 02 21:35:56 2005 +0000
     1.3 @@ -129,6 +129,9 @@ int construct_dom0(struct domain *d,
     1.4      if ( rc != 0 )
     1.5          return rc;
     1.6  
     1.7 +    if (dsi.load_bsd_symtab)
     1.8 +        loadelfsymtab(image_start, 0, &dsi);
     1.9 +
    1.10      /* Align load address to 4MB boundary. */
    1.11      dsi.v_start &= ~((1UL<<22)-1);
    1.12  
    1.13 @@ -139,7 +142,7 @@ int construct_dom0(struct domain *d,
    1.14       * read-only). We have a pair of simultaneous equations in two unknowns, 
    1.15       * which we solve by exhaustive search.
    1.16       */
    1.17 -    vinitrd_start    = round_pgup(dsi.v_kernend);
    1.18 +    vinitrd_start    = round_pgup(dsi.v_end);
    1.19      vinitrd_end      = vinitrd_start + initrd_len;
    1.20      vphysmap_start   = round_pgup(vinitrd_end);
    1.21      vphysmap_end     = vphysmap_start + (nr_pages * sizeof(u32));
    1.22 @@ -422,6 +425,10 @@ int construct_dom0(struct domain *d,
    1.23  
    1.24      /* Copy the OS image and free temporary buffer. */
    1.25      (void)loadelfimage(image_start);
    1.26 +
    1.27 +    if (dsi.load_bsd_symtab)
    1.28 +        loadelfsymtab(image_start, 1, &dsi);
    1.29 +
    1.30      init_domheap_pages(
    1.31          _image_start, (_image_start+image_len+PAGE_SIZE-1) & PAGE_MASK);
    1.32