summaryrefslogtreecommitdiff
path: root/src/drivers/emulation/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/emulation/qemu')
-rw-r--r--src/drivers/emulation/qemu/bochs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/emulation/qemu/bochs.c b/src/drivers/emulation/qemu/bochs.c
index eb11e34b8c..b4acfefcbc 100644
--- a/src/drivers/emulation/qemu/bochs.c
+++ b/src/drivers/emulation/qemu/bochs.c
@@ -41,7 +41,6 @@
static int width = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_XRES;
static int height = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_YRES;
-static u32 addr = 0;
static void bochs_write(int index, int val)
{
@@ -57,7 +56,9 @@ static int bochs_read(int index)
static void bochs_init(device_t dev)
{
+ struct edid edid;
int id, mem, bar;
+ u32 addr;
/* bochs dispi detection */
id = bochs_read(VBE_DISPI_INDEX_ID);
@@ -101,7 +102,8 @@ static void bochs_init(device_t dev)
VBE_DISPI_ENABLED | VBE_DISPI_LFB_ENABLED);
outb(0x20, 0x3c0); /* disable blanking */
- struct edid edid;
+
+ /* setup coreboot framebuffer */
edid.ha = width;
edid.va = height;
edid.bpp = 32;