Blinkenlichten used to be disabled by default, and became enabled by
default some releases ago.

However, the tc alpha blinkenlichten code was expecting to be triggered
by a sysctl machdep.led_blink change, and would not start by default.

The following diff fixes this, and restores the balance of serenity and
peace of mind, to some extent.

Index: sys/arch/alpha/tc/ioasic.c
===================================================================
RCS file: /OpenBSD/src/sys/arch/alpha/tc/ioasic.c,v
retrieving revision 1.17
diff -u -p -r1.17 ioasic.c
--- sys/arch/alpha/tc/ioasic.c  20 Sep 2010 06:33:46 -0000      1.17
+++ sys/arch/alpha/tc/ioasic.c  12 Sep 2017 20:37:09 -0000
@@ -91,6 +91,7 @@ struct cfdriver ioasic_cd = {
 
 int    ioasic_intr(void *);
 int    ioasic_intrnull(void *);
+void   ioasic_led_blink(void *);
 
 #define        C(x)    ((void *)(u_long)(x))
 #define        KV(x)   (ALPHA_PHYS_TO_K0SEG(x))
@@ -207,6 +208,8 @@ ioasicattach(parent, self, aux)
         * Try to configure each device.
         */
        ioasic_attach_devs(sc, ioasic_devs, ioasic_ndevs);
+
+       ioasic_led_blink(NULL);
 }
 
 void
@@ -348,7 +351,7 @@ static const uint8_t led_pattern8[] = {
 void
 ioasic_led_blink(void *unused)
 {
-       extern int alpha_led_blink;
+       extern int alpha_led_blink;     /* machdep.c */
        vaddr_t rw_csr;
        u_int32_t pattern;
        int display_loadavg;

Reply via email to