From: Gerd Hoffmann Date: Mon, 6 Feb 2012 14:51:43 +0000 (+0100) Subject: vga: fix bochs lfb size display X-Git-Tag: rel-1.7.0~58 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=091dd17e8dc2ca242ae6839a6699dbc0ed52a3ed;p=seabios.git vga: fix bochs lfb size display Signed-off-by: Gerd Hoffmann --- diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c index 957bde2..2a8aeb1 100644 --- a/vgasrc/bochsvga.c +++ b/vgasrc/bochsvga.c @@ -367,7 +367,7 @@ bochsvga_init(void) SET_VGA(VBE_capabilities, VBE_CAPABILITY_8BIT_DAC); dprintf(1, "VBE DISPI: lfb_addr=%x, size %d MB\n", - lfb_addr, totalmem / 16); + lfb_addr, totalmem >> 20); // Validate modes u16 en = dispi_read(VBE_DISPI_INDEX_ENABLE);