[OpenBIOS] [PATCH] Set properties to disable carrier detection on the serial ports for SPARC32.

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Fri Apr 22 08:58:52 CEST 2011


This prevents the Solaris 8 kernel from freezing during boot after detecting
the serial ports.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
---
 openbios-devel/drivers/escc.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/openbios-devel/drivers/escc.c b/openbios-devel/drivers/escc.c
index ef431b2..892dc8c 100644
--- a/openbios-devel/drivers/escc.c
+++ b/openbios-devel/drivers/escc.c
@@ -342,6 +342,16 @@ ob_zs_init(phys_addr_t base, uint64_t offset, int intr, int slave, int keyboard)
 
     ob_intr(intr);
 
+    PUSH(0);
+    PUSH(0);
+    push_str("port-a-ignore-cd");
+    fword("property");
+
+    PUSH(0);
+    PUSH(0);
+    push_str("port-b-ignore-cd");
+    fword("property");
+
     fword("finish-device");
 
     snprintf(nodebuff, sizeof(nodebuff), "/obio/zs at 0,%x",
-- 
1.7.2.5




More information about the OpenBIOS mailing list