[SeaBIOS] [PATCH 7/7] vga: fix bochs lfb size display
Gerd Hoffmann
kraxel at redhat.com
Mon Feb 6 15:51:43 CET 2012
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
vgasrc/bochsvga.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c
index e92186a..71f9b9f 100644
--- a/vgasrc/bochsvga.c
+++ b/vgasrc/bochsvga.c
@@ -278,7 +278,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);
--
1.7.1
More information about the SeaBIOS
mailing list