[2/4] milkymist-vgafb: fix console resizing

Submitted by Michael Walle on April 12, 2011, 10:29 p.m.

Details

Message ID 1302647376-26764-3-git-send-email-michael@walle.cc
State New
Headers show

Commit Message

Michael Walle April 12, 2011, 10:29 p.m.
After enabling the framebuffer, ensure that the console is resized.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 hw/milkymist-vgafb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/hw/milkymist-vgafb.c b/hw/milkymist-vgafb.c
index 8922731..2e55e42 100644
--- a/hw/milkymist-vgafb.c
+++ b/hw/milkymist-vgafb.c
@@ -199,6 +199,9 @@  vgafb_write(void *opaque, target_phys_addr_t addr, uint32_t value)
     addr >>= 2;
     switch (addr) {
     case R_CTRL:
+        s->regs[addr] = value;
+        vgafb_resize(s);
+        break;
     case R_HSYNC_START:
     case R_HSYNC_END:
     case R_HSCAN: