Skip to contentSkip to conversation

pc: disable the BOCHS BIOS panic port

PATCH Superseded Bernhard Kohl 2 participants 4 messages Sep 1, 2010 – Nov 15, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc: disable the BOCHS BIOS panic port

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
 hw/pc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
hw/pc.c +0 -2
index 69b13bf..3f81229 100644
@@ -430,8 +430,6 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
         /* Bochs BIOS messages */
     case 0x400:
     case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
     case 0x402:
     case 0x403:
 #ifdef DEBUG_BIOS
Signature · 1 line
1.7.2.2
#1 lore raw

Am 01.09.2010 16:44, schrieb Bernhard Kohl:

Quoted 14 lines

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
  hw/pc.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)
hw/pc.c +0 -0
index 69b13bf..3f81229 100644

hw/pc.c static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) · line 435

Quoted 8 lines
hw/pc.c +0 -2
@@ -430,8 +430,6 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
          /* Bochs BIOS messages */
      case 0x400:
      case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
      case 0x402:
      case 0x403:
  #ifdef DEBUG_BIOS

Hi,

could you please look at this?

Thanks
Bernhard

#2 lore raw
Quoted 26 lines · Bernhard Kohl

Am 01.09.2010 16:44, schrieb Bernhard Kohl:

Quoted 14 lines

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
 hw/pc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
hw/pc.c +0 -0
index 69b13bf..3f81229 100644

hw/pc.c static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) · line 435

Quoted 8 lines
hw/pc.c +0 -2
@@ -430,8 +430,6 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
         /* Bochs BIOS messages */
     case 0x400:
     case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
     case 0x402:
     case 0x403:
 #ifdef DEBUG_BIOS

Hi,

Quoted 1 line

could you please look at this?

This patch makes that port that was silent before print debug output if DEBUG_BIOS is enabled which might be confusing.

How about something like

case 0x400:
case 0x401:

    /* used to be panic, now unused */
    break;

Alex

#3 lore raw

Am 15.11.2010 11:09, schrieb ext Alexander Graf:

Quoted 36 lines · Bernhard Kohl
Quoted 29 lines

Am 01.09.2010 16:44, schrieb Bernhard Kohl:

Quoted 15 lines

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
  hw/pc.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)
hw/pc.c +0 -0
index 69b13bf..3f81229 100644

hw/pc.c static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) · line 435

Quoted 8 lines
hw/pc.c +0 -2
@@ -430,8 +430,6 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
          /* Bochs BIOS messages */
      case 0x400:
      case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
      case 0x402:
      case 0x403:
  #ifdef DEBUG_BIOS

Hi,

Quoted 2 lines

could you please look at this?

This patch makes that port that was silent before print debug output if DEBUG_BIOS is enabled which might be confusing.

How about something like

Quoted 10 lines

case 0x400:
case 0x401:

     /* used to be panic, now unused */
     break;

Alex

Yes, you are right. I will take your proposal in patch v2.

Bernhard