summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-06-03 17:12:52 -0500
committerRichard Henderson <rth@twiddle.net>2011-06-03 17:12:52 -0500
commit7abb12f60eb3069019e9497e193733d77d8f0722 (patch)
tree23eb9e1e2a2df99e8f0a8475cac48499d212cbca /console.c
parentdb3b5b6935eed9a229bf5c11b4db0b7d2a812940 (diff)
downloadqemu-palcode-7abb12f60eb3069019e9497e193733d77d8f0722.zip
qemu-palcode-7abb12f60eb3069019e9497e193733d77d8f0722.tar.gz
qemu-palcode-7abb12f60eb3069019e9497e193733d77d8f0722.tar.bz2
Properly detect the presence of a vga device.
Diffstat (limited to 'console.c')
-rw-r--r--console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/console.c b/console.c
index fbb9a98..382cf54 100644
--- a/console.c
+++ b/console.c
@@ -122,6 +122,7 @@ do_console(void)
set_console_alarm();
swpipl(0);
+ if (have_vga)
{
unsigned short *vga, attr;
vga = pci_mem_base + SEG_CTEXT *16;