[OpenBIOS] [commit] r1108 - trunk/openbios-devel/drivers
repository service
svn at openbios.org
Fri Apr 5 12:33:29 CEST 2013
Author: mcayland
Date: Fri Apr 5 12:33:22 2013
New Revision: 1108
URL: http://tracker.coreboot.org/trac/openbios/changeset/1108
Log:
macio: Fix ide interrupts initialization
interrupts and #interrupt-cells are newworld properties.
Also oldworld interrupts were not properly set, i.e. second one was always
set to 0 instead of correct value.
Signed-off-by: Amadeusz Sławiński <amade at asmblr.net>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
Modified:
trunk/openbios-devel/drivers/ide.c
Modified: trunk/openbios-devel/drivers/ide.c
==============================================================================
--- trunk/openbios-devel/drivers/ide.c Fri Apr 5 12:33:03 2013 (r1107)
+++ trunk/openbios-devel/drivers/ide.c Fri Apr 5 12:33:22 2013 (r1108)
@@ -1611,9 +1611,11 @@
}
props[1] = 0x00000000; /* XXX level triggered on real hw */
props[3] = 0x00000000;
- set_property(dnode, "interrupts",
- (char *)&props, 4*sizeof(props[0]));
- set_int_property(dnode, "#interrupt-cells", 2);
+ NEWWORLD(set_property(dnode, "interrupts",
+ (char *)&props, 4*sizeof(props[0])));
+ NEWWORLD(set_int_property(dnode, "#interrupt-cells", 2));
+
+ props[1] = props[2];
OLDWORLD(set_property(dnode, "AAPL,interrupts",
(char *)&props, 2*sizeof(props[0])));
More information about the OpenBIOS
mailing list