From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 23 Dec 2012 16:32:41 +0100 Message-Id: <1356276769-7357-2-git-send-email-hpoussin@reactos.org> In-Reply-To: <1356276769-7357-1-git-send-email-hpoussin@reactos.org> References: <1356276769-7357-1-git-send-email-hpoussin@reactos.org> Subject: [Qemu-devel] [RFC 1/8] pc: disable bochs bios debug ports (do not apply!) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Gerd Hoffmann 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); -- 1.7.10.4