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

login
register
mail settings
Submitter Michael Walle
Date April 12, 2011, 10:29 p.m.
Message ID <1302647376-26764-3-git-send-email-michael@walle.cc>
Download mbox | patch
Permalink /patch/90917/
State New
Headers show

Comments

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

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: