From patchwork Mon Nov 16 20:11:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 38539 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4597CB6EDF for ; Tue, 17 Nov 2009 07:13:32 +1100 (EST) Received: from localhost ([127.0.0.1]:34381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA7x3-0006YI-1H for incoming@patchwork.ozlabs.org; Mon, 16 Nov 2009 15:13:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA7vQ-0005jj-EL for qemu-devel@nongnu.org; Mon, 16 Nov 2009 15:11:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA7vL-0005f7-QD for qemu-devel@nongnu.org; Mon, 16 Nov 2009 15:11:48 -0500 Received: from [199.232.76.173] (port=38866 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA7vL-0005f0-Ki for qemu-devel@nongnu.org; Mon, 16 Nov 2009 15:11:43 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:63729) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA7vK-0007lq-An for qemu-devel@nongnu.org; Mon, 16 Nov 2009 15:11:43 -0500 Received: from flocke.weilnetz.de (p54ADF594.dip.t-dialin.net [84.173.245.148]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MH5MY-1NNpI91oxe-00DKco; Mon, 16 Nov 2009 21:11:39 +0100 Received: from stefan by flocke.weilnetz.de with local (Exim 4.69) (envelope-from ) id 1NA7vG-00024O-Ji; Mon, 16 Nov 2009 21:11:38 +0100 From: Stefan Weil To: anthony@codemonkey.ws, qemu-devel@nongnu.org Date: Mon, 16 Nov 2009 21:11:38 +0100 Message-Id: <1258402298-7909-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <4B01A430.1080107@codemonkey.ws> References: <4B01A430.1080107@codemonkey.ws> X-Provags-ID: V01U2FsdGVkX19kjRyWRS745fVSNSJNVlGnNsc4AusFhGns0x7 jmiPTVY2N1gyVcAnFdDpwb5oIpGEuvGJkOEDgTkNAf9ZgIyQNP BrfYWgwU2NCFo5vHKsc33oikbryalt3M1uyNv8O9aJev11Zf2c oow== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Subject: [Qemu-devel] [PATCH] vga-pci: Fix access to linear framebuffer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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;