From: Ian Jackson Date: Mon, 2 Jun 2008 14:37:15 +0000 (+0100) Subject: Initialise vga_ram_addr to 0. X-Git-Tag: xen-3.3.0-rc1~120 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=220b939836794f4a97e5b113847884dd18e9be44;p=qemu-xen-4.3-testing.git Initialise vga_ram_addr to 0. This is not used in the Xen case. In xen-unstable NULL is passed directly in the calls to the various vga_init functions; in this version we set vga_ram_addr to 0 as that's textually a smaller change. --- diff --git a/hw/pc.c b/hw/pc.c index c33c38d23..05fd047b0 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -906,6 +906,8 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, /* map all the bios at the top of memory */ cpu_register_physical_memory((uint32_t)(-bios_size), bios_size, bios_offset | IO_MEM_ROM); +#else + vga_ram_addr = 0; /* this is not supposed to be used */ #endif /* !CONFIG_DM */ bochs_bios_init();