]> xenbits.xensource.com Git - seabios.git/commitdiff
Update VBE variables
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 1 Sep 2012 15:13:01 +0000 (17:13 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2012 16:04:56 +0000 (12:04 -0400)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
vgasrc/geodevga.c

index 636d55bb294c13b21ef3b1b2a17d3fc21daddbe9..247ad22a14655776f00e10cb76e1fa1503bc03da 100644 (file)
@@ -166,6 +166,10 @@ static int dc_setup(void)
 
     u32 fb_size = framebuffer_size(); // in byte
     dprintf(1, "%d KB of video memory at 0x%08x\n", fb_size / 1024, fb);
+
+    /* update VBE variables */
+    SET_VGA(VBE_framebuffer, fb);
+    SET_VGA(VBE_total_memory, fb_size / 1024 / 64); // number of 64K blocks
     
     return 0;
 }