Dieter | 12 Aug 2006 18:19

FIX! Re: Upgraded to 3.0.1 -> no console

Dave Barnes was kind enough to email me a diff to fix
the rs-232 ports.  Patch wasn't quite smart enough to
automatically apply it to 3.0.1, but with a bit of hand
editing the console is working again.  Thanks, Dave!

Here is a patch for 3.0.1.

===================================================================
RCS file: arch/alpha/pci/RCS/sio_pic.c,v
retrieving revision 1.1
diff -u -r1.1 arch/alpha/pci/sio_pic.c
--- arch/alpha/pci/sio_pic.c	2006/08/12 22:39:31	1.1
+++ arch/alpha/pci/sio_pic.c	2006/08/12 22:48:16
 <at>  <at>  -121,8 +121,15  <at>  <at> 
  * If prom console is broken, must remember the initial interrupt
  * settings and enforce them.  WHEE!
  */
-u_int8_t initial_ocw1[2];
-u_int8_t initial_elcr[2];
+#define    INITIALLY_ENABLED(irq)                        \
+    ((initial_ocw1[(irq) / 8] & (1 << ((irq) % 8))) == 0)
+#define    INITIALLY_LEVEL_TRIGGERED(irq)                    \
+    ((initial_elcr[(irq) / 8] & (1 << ((irq) % 8))) != 0)
+ u_int8_t initial_ocw1[2];
+ u_int8_t initial_elcr[2];
+#else
+#define    INITIALLY_ENABLED(irq)        ((irq) == 2 ? 1 : 0)
+#define    INITIALLY_LEVEL_TRIGGERED(irq)    0
 #endif

(Continue reading)


Gmane