Message ID | 20101014183546.23575.34968.stgit@s20.home (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/vga.c b/hw/vga.c index 966185e..90f9dc0 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -2331,6 +2331,14 @@ void vga_init(VGACommonState *s) void vga_init_vbe(VGACommonState *s) { #ifdef CONFIG_BOCHS_VBE +#if defined (TARGET_I386) + if (e820_add_entry(VBE_DISPI_LFB_PHYSICAL_ADDRESS, + VGA_RAM_SIZE, E820_RESERVED) < 0) { + fprintf(stderr, + "Warning: unable to register VBE range as e820 reserved\n"); + } +#endif + /* XXX: use optimized standard vga accesses */ cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS, VGA_RAM_SIZE, s->vram_offset);