From 220b939836794f4a97e5b113847884dd18e9be44 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 2 Jun 2008 15:37:15 +0100 Subject: [PATCH] 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. --- hw/pc.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5