[prev in list] [next in list] [prev in thread] [next in thread]
List: openbios
Subject: [OpenBIOS] [PATCH V2 2/5] fix ide interrupts initialization
From: Amadeusz Sławiński <amade () asmblr ! net>
Date: 2013-03-22 17:25:27
Message-ID: 1363973130-13460-2-git-send-email-amade () asmblr ! net
[Download RAW message or body]
interrupts ans #interrupt-cells are newworld properties
also oldworld interrupts were not properly set, ie second one was always
set to 0 instead of correct value
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
---
drivers/ide.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/ide.c b/drivers/ide.c
index 90138ff..251db65 100644
--- a/drivers/ide.c
+++ b/drivers/ide.c
@@ -1611,9 +1611,11 @@ int macio_ide_init(const char *path, uint32_t addr, int nb_channels)
}
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])));
--
1.8.1.5
--
OpenBIOS http://openbios.org/
Mailinglist: http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic