Skip to contentSkip to conversation

macio: remove nonexistent interrupt on pin 1

PATCH Superseded Cormac O'Brien 2 participants 2 messages Jun 8, 2015 – Jun 9, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

The current macio device implementation declares an interrupt that doesn't seem to exist in the actual hardware or any other emulators. Mac OS 9 counts the presence of this interrupt as a fatal error and progresses further without it.

---
 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.2
#1 lore raw
Quoted 4 lines · Cormac O'Brien

The current macio device implementation declares an interrupt that doesn't seem to exist in the actual hardware or any other emulators. Mac OS 9 counts the presence of this interrupt as a fatal error and progresses further without it.

This is only half of the problem unfortunately :). The reason the existence of an interrupt pin is a problem is that OpenBIOS automatically generates an interrupt property in the device tree for the macio device.

Please mention this in the patch description as well. Also, please make sure to CC [email protected] on v2 :).

Thanks!

Alex

Quoted 21 lines
---
 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;