Patchwork [RFC,1/8] pc: disable bochs bios debug ports (do not apply!)

login
register
mail settings
Submitter Hervé Poussineau
Date Dec. 23, 2012, 3:32 p.m.
Message ID <1356276769-7357-2-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/207981/
State New
Headers show

Comments

Hervé Poussineau - Dec. 23, 2012, 3:32 p.m.
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(+)

Patch

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);