[OpenBIOS] [commit] r721 - trunk/openbios-devel/drivers
repository service
svn at openbios.org
Fri Apr 2 01:40:22 CEST 2010
Author: agraf
Date: Fri Apr 2 01:40:21 2010
New Revision: 721
URL: http://tracker.coreboot.org/trac/openbios/changeset/721
Log:
[PPC] Make mac-io ata interrupts depend on local, not global index
In commit r680 I incorrectly made the interrupt number of the mac-io ata
device depend on its global index. Of course the interrupt only depends on
its index inside the mac-io chip.
So let's fix that up and make Qemu's oldworld emulation work again!
Signed-off-by: Alexander Graf <agraf at suse.de>
Modified:
trunk/openbios-devel/drivers/ide.c
Modified: trunk/openbios-devel/drivers/ide.c
==============================================================================
--- trunk/openbios-devel/drivers/ide.c Mon Mar 29 01:47:36 2010 (r720)
+++ trunk/openbios-devel/drivers/ide.c Fri Apr 2 01:40:21 2010 (r721)
@@ -1582,16 +1582,16 @@
/* The first interrupt entry is the ide interrupt, the second
the dbdma interrupt */
- switch (current_channel) {
- case 1:
+ switch (i) {
+ case 0:
props[0] = 0x0000000d;
props[2] = 0x00000002;
break;
- case 2:
+ case 1:
props[0] = 0x0000000e;
props[2] = 0x00000003;
break;
- case 3:
+ case 2:
props[0] = 0x0000000f;
props[2] = 0x00000004;
break;
More information about the OpenBIOS
mailing list