diff options
author | mcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32> | 2016-04-17 14:41:50 +0000 |
---|---|---|
committer | mcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32> | 2016-04-17 14:41:50 +0000 |
commit | 422b916649aa0db8c5edadccb22387b3e807e3b2 (patch) | |
tree | 433b9e3a9ea77141587ebc13fe54b4d39310a31e | |
parent | 2812ae2f479a67818bb9985bb5e09f6be91d4058 (diff) | |
download | qemu-openbios-svn-head.tar.gz |
escc.c: add empty ranges property to escc and escc-legacy nodessvn-last-officialsvn-head
This fixes an intermittent panic in the AppleSCCSerial module for MacOS
10.2 and the g3beige machine during initialisation as the module tries to
write to the on-chip registers at 0x130XX rather than calculating the
correct address derived from the parent PCI node.
As described in the IEEE-1275 specification: if a "ranges" property exists but
has a zero-length property value, the child address space is identical to the
parent address space.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@1395 f158a5a8-5612-0410-a976-696ce0be7e32
-rw-r--r-- | drivers/escc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/escc.c b/drivers/escc.c index 5fa3139e..1990e798 100644 --- a/drivers/escc.c +++ b/drivers/escc.c @@ -514,6 +514,7 @@ escc_init(const char *path, phys_addr_t addr) set_property(dnode, "device_type", "escc", strlen("escc") + 1); set_property(dnode, "compatible", "escc\0CHRP,es0", 14); + set_property(dnode, "ranges", "", 0); fword("finish-device"); @@ -541,6 +542,7 @@ escc_init(const char *path, phys_addr_t addr) set_property(dnode, "device_type", "escc-legacy", strlen("escc-legacy") + 1); set_property(dnode, "compatible", "chrp,es1", 9); + set_property(dnode, "ranges", "", 0); fword("finish-device"); |