Kernel compile fixes
Gabucino <[email protected]> Wed, 7 Jul 2004 07:23:41 +0200
| Newsgroups | gmane.os.openbsd.vax,gmane.os.openbsd.tech |
|---|---|
| Message-ID | <[email protected]> |
Attached is a patch for two files. The first (clock.c) is a compile fix,
without this the kernel won't compile if only VAX48 is defined.
The second is a patch for wskbd.c, and it exists in NetBSD too. I believe
it must be there. Without this, LK401 keypresses repeat forever on my VS4k/VLC.
The rest of the VS4k/VLC support (LCG framebuffer + keyboard enabling /and
some ported functions from NetBSD/) is available from CVS on vax.linsze.hu
(LCG driver is not yet complete so I have not attached the whole bunch of
changes)
If someone of the OBSD/VAX people is alive, please comment/apply!
--
Bérczi Gábor
/Gabucino/
Index: openbsd/usr/src/sys/arch/vax/vax/clock.c
===================================================================
RCS file: /var/cvs/lcg/openbsd/usr/src/sys/arch/vax/vax/clock.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- openbsd/usr/src/sys/arch/vax/vax/clock.c 1 Jul 2004 14:57:09 -0000 1.1
+++ openbsd/usr/src/sys/arch/vax/vax/clock.c 1 Jul 2004 16:21:57 -0000 1.2
@@ -265,7 +265,7 @@
}
#endif
-#if VAX630 || VAX410 || VAX43 || VAX8200 || VAX46
+#if VAX630 || VAX410 || VAX43 || VAX8200 || VAX46 || VAX48
volatile short *clk_page; /* where the chip is mapped in virtual memory */
int clk_adrshift; /* how much to multiply the in-page address with */
Index: openbsd/usr/src/sys/dev/wscons/wskbd.c
===================================================================
RCS file: /var/cvs/lcg/openbsd/usr/src/sys/dev/wscons/wskbd.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- openbsd/usr/src/sys/dev/wscons/wskbd.c 6 Jul 2004 17:59:55 -0000 1.1
+++ openbsd/usr/src/sys/dev/wscons/wskbd.c 6 Jul 2004 18:00:50 -0000 1.2
@@ -593,6 +593,10 @@
int put;
#if NWSDISPLAY > 0
+ if (sc->sc_repeating) {
+ sc->sc_repeating = 0;
+ timeout_del(&sc->sc_repeat_ch);
+ }
/*
* If /dev/wskbd is not connected in event mode translate and
* send upstream.