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@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);