Skip to contentSkip to conversation

macio: remove nonexistent interrupt on pin 1

PATCH In review Cormac O'Brien 3 participants 3 messages Jun 17, 2015 – Jun 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 macio: remove nonexistent interrupt on pin 1

The current macio implementation declares an interrupt that doesn't appear to exist in the hardware or any other emulator implementation. OpenBIOS detects this interrupt and generates an 'interrupts' property in the macio device tree entry. Mac OS 9 halts boot when it detects this interrupt, so it has been removed to permit further progress in the boot process.

---
 hw/misc/macio/macio.c | 2 --
 1 file changed, 2 deletions(-)
hw/misc/macio/macio.c +0 -2
index 063ad80..306c95e 100644
@@ -132,8 +132,6 @@ static int macio_common_initfn(PCIDevice *d)
     SysBusDevice *sysbus_dev;
     int ret;
 
-    d->config[0x3d] = 0x01; // interrupt on pin 1
-
     ret = qdev_init(DEVICE(&s->cuda));
     if (ret < 0) {
         return ret;
Signature · 1 line
2.4.3
Reviewed-by on v2 1/1
#1 lore raw
Quoted 18 lines · Cormac O'Brien

The current macio implementation declares an interrupt that doesn't appear to exist in the hardware or any other emulator implementation. OpenBIOS detects this interrupt and generates an 'interrupts' property in the macio device tree entry. Mac OS 9 halts boot when it detects this interrupt, so it has been removed to permit further progress in the boot process.

---
 hw/misc/macio/macio.c | 2 --
 1 file changed, 2 deletions(-)
hw/misc/macio/macio.c +0 -0
index 063ad80..306c95e 100644

hw/misc/macio/macio.c static int macio_common_initfn(PCIDevice *d) · line 137

Quoted 8 lines
hw/misc/macio/macio.c +0 -2
@@ -132,8 +132,6 @@ static int macio_common_initfn(PCIDevice *d)
     SysBusDevice *sysbus_dev;
     int ret;
 
-    d->config[0x3d] = 0x01; // interrupt on pin 1
-
     ret = qdev_init(DEVICE(&s->cuda));
     if (ret < 0) {
         return ret;

ATB,

Mark.

#2 lore raw
In reply to Cormac O'Brien
Quoted 7 lines · Cormac O'Brien

The current macio implementation declares an interrupt that doesn't appear to exist in the hardware or any other emulator implementation. OpenBIOS detects this interrupt and generates an 'interrupts' property in the macio device tree entry. Mac OS 9 halts boot when it detects this interrupt, so it has been removed to permit further progress in the boot process.

Which tree is this against? It doesn't apply as is to current ppc-next.

Either way, I've fixed it up and applied it. Thanks!

Alex