qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 1/8] pc: disable bochs bios debug ports (do not apply!


From: Hervé Poussineau
Subject: [Qemu-devel] [RFC 1/8] pc: disable bochs bios debug ports (do not apply!)
Date: Sun, 23 Dec 2012 16:32:41 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]