ia64/xen-unstable

changeset 7098:8204a2d6cd55

Initialize pointer array for set mapping.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
author yjiang5@vtsmp-build.sh.intel.com
date Wed Sep 28 14:07:57 2005 +0100 (2005-09-28)
parents 7e9ec4b2cc3c
children b55a43d39a40
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Wed Sep 28 14:07:25 2005 +0100
     1.2 +++ b/tools/ioemu/vl.c	Wed Sep 28 14:07:57 2005 +0100
     1.3 @@ -2385,7 +2385,8 @@ int
     1.4  setup_mapping(int xc_handle, u32 dom, unsigned long toptab, unsigned long  *mem_page_array, unsigned long *page_table_array, unsigned long v_start, unsigned long v_end)
     1.5  {
     1.6      l1_pgentry_t *vl1tab=NULL, *vl1e=NULL;
     1.7 -    l2_pgentry_t *vl2tab[4], *vl2e=NULL, *vl2_table = NULL;
     1.8 +    l2_pgentry_t *vl2tab[4] = {NULL, NULL, NULL, NULL};
     1.9 +    l2_pgentry_t *vl2e=NULL, *vl2_table = NULL;
    1.10      unsigned long l1tab;
    1.11      unsigned long ppt_alloc = 0;
    1.12      unsigned long count;