From patchwork Sun Dec 23 15:32:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Herv=C3=A9_Poussineau?= X-Patchwork-Id: 207981 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 809CC2C008A for ; Mon, 24 Dec 2012 02:32:46 +1100 (EST) Received: from localhost ([::1]:38226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmnXg-0007uC-Hh for incoming@patchwork.ozlabs.org; Sun, 23 Dec 2012 10:32:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmnXG-0007fF-VI for qemu-devel@nongnu.org; Sun, 23 Dec 2012 10:32:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmnXB-0007Ql-Q2 for qemu-devel@nongnu.org; Sun, 23 Dec 2012 10:32:18 -0500 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]:42539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmnXB-0007PP-6I for qemu-devel@nongnu.org; Sun, 23 Dec 2012 10:32:13 -0500 Received: from localhost.localdomain (unknown [82.227.227.196]) by smtp1-g21.free.fr (Postfix) with ESMTP id E92C8940135; Sun, 23 Dec 2012 16:32:00 +0100 (CET) From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= To: qemu-devel@nongnu.org Date: Sun, 23 Dec 2012 16:32:41 +0100 Message-Id: <1356276769-7357-2-git-send-email-hpoussin@reactos.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1356276769-7357-1-git-send-email-hpoussin@reactos.org> References: <1356276769-7357-1-git-send-email-hpoussin@reactos.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::10 Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Gerd Hoffmann Subject: [Qemu-devel] [RFC 1/8] pc: disable bochs bios debug ports (do not apply!) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch must not be applied as-is. Some patches to use MemoryRegion have already been sent to mailing list, but none has been applied yet. --- hw/pc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/pc.c b/hw/pc.c index b11e7c4..7f98955 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -524,6 +524,7 @@ static void handle_a20_line_change(void *opaque, int irq, int level) cpu_x86_set_a20(cpu, level); } +#if 0 /***********************************************************/ /* Bochs BIOS debug ports */ @@ -551,6 +552,7 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) exit((val << 1) | 1); } } +#endif int e820_add_entry(uint64_t address, uint64_t length, uint32_t type) { @@ -569,6 +571,7 @@ int e820_add_entry(uint64_t address, uint64_t length, uint32_t type) return index; } +#if 0 static const MemoryRegionPortio bochs_bios_portio_list[] = { { 0x500, 1, 1, .write = bochs_bios_write, }, /* 0x500 */ { 0x501, 1, 1, .write = bochs_bios_write, }, /* 0x501 */ @@ -576,6 +579,7 @@ static const MemoryRegionPortio bochs_bios_portio_list[] = { { 0x8900, 1, 1, .write = bochs_bios_write, }, /* 0x8900 */ PORTIO_END_OF_LIST(), }; +#endif static void *bochs_bios_init(void) { @@ -584,11 +588,13 @@ static void *bochs_bios_init(void) size_t smbios_len; uint64_t *numa_fw_cfg; int i, j; +#if 0 PortioList *bochs_bios_port_list = g_new(PortioList, 1); portio_list_init(bochs_bios_port_list, bochs_bios_portio_list, NULL, "bochs-bios"); portio_list_add(bochs_bios_port_list, get_system_io(), 0x0); +#endif fw_cfg = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0);