[OpenBIOS] [PATCH 3/6] pc_serial.c: don't add address property to SPARC64 serial ports

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Jul 27 22:44:44 CEST 2014


This is similar to real hardware, otherwise NetBSD allows this property to
override the bus address which inevitably gives the wrong value.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 openbios-devel/drivers/pc_serial.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/openbios-devel/drivers/pc_serial.c b/openbios-devel/drivers/pc_serial.c
index 47e7084..709ce77 100644
--- a/openbios-devel/drivers/pc_serial.c
+++ b/openbios-devel/drivers/pc_serial.c
@@ -192,10 +192,12 @@ ob_pc_serial_init(const char *path, const char *dev_name, uint64_t base,
     push_str("reg");
     fword("property");
     
+#if !defined(CONFIG_SPARC64)
     PUSH(offset);
     fword("encode-int");
     push_str("address");
     fword("property");
+#endif
     
 #if defined(CONFIG_SPARC64)
     set_int_property(get_cur_dev(), "interrupts", 1);
-- 
1.7.10.4




More information about the OpenBIOS mailing list