From: Stefan Weil <weil@mail.berlios.de>
To: anthony@codemonkey.ws, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] vga-pci: Fix access to linear framebuffer
Date: Mon, 16 Nov 2009 21:11:38 +0100 [thread overview]
Message-ID: <1258402298-7909-1-git-send-email-weil@mail.berlios.de> (raw)
In-Reply-To: <4B01A430.1080107@codemonkey.ws>
Anthony Liguori's patch fixes the problems with
vga display in graphical mode and SeaBIOS.
I only adapted some values for vga-pci.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
hw/vga-pci.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/vga-pci.c b/hw/vga-pci.c
index 234d581..a6ad46b 100644
--- a/hw/vga-pci.c
+++ b/hw/vga-pci.c
@@ -107,6 +107,12 @@ static int pci_vga_initfn(PCIDevice *dev)
PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
}
+#ifdef CONFIG_BOCHS_VBE
+ /* XXX: use optimized standard vga accesses */
+ cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS,
+ VGA_RAM_SIZE, s->vram_offset);
+#endif
+
/* ROM BIOS */
rom_add_vga(VGABIOS_FILENAME);
return 0;
--
1.5.6.5
prev parent reply other threads:[~2009-11-16 20:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-15 1:25 [Qemu-devel] Standard vga breakage malc
2009-11-15 10:20 ` Blue Swirl
2009-11-15 15:22 ` malc
2009-11-15 15:28 ` Gleb Natapov
2009-11-15 15:40 ` malc
2009-11-15 20:16 ` Stefan Weil
2009-11-15 20:37 ` Blue Swirl
2009-11-15 21:21 ` malc
2009-11-15 21:35 ` Blue Swirl
2009-11-16 18:21 ` Stefan Weil
2009-11-16 19:12 ` Anthony Liguori
2009-11-16 20:11 ` Stefan Weil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1258402298-7909-1-git-send-email-weil@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).