Subject: patch to pmax-current kernel
To: None <port-pmax@NetBSD.ORG>
From: None <root@engg.ucalgary.ca>
List: port-pmax
Date: 11/10/1995 15:14:37
Hi!
The enclosed patch fixes problems with machdeps.c when compiling a
NetBSD kernel without defining DS5000_240 or DS3100.
--Gord
--
Gord Matzigkeit | This is my NetBSD development account
gord@engg.ucalgary.ca | Please send mail to gord@enci.ucalgary.ca
--- /sys/arch/pmax/pmax/machdep.c.orig Fri Nov 10 14:42:11 1995
+++ machdep.c Fri Nov 10 14:51:44 1995
@@ -168,12 +168,12 @@
int kn02_intr(), kmin_intr(), xine_intr();
-#ifdef DS3100
+#if defined(DS3100) || defined(DS5000)
extern int kn01_intr();
void kn01_enable_intr __P ((u_int slotno,
int (*handler) __P ((intr_arg_t sc)),
intr_arg_t sc, int onoff));
-#endif /* DS3100 */
+#endif /* DS3100 || DS5000 */
#ifdef DS5000_240
int kn03_intr();
@@ -1450,7 +1450,7 @@
return;
}
-#if defined(DEBUG) || defined(DIAGNOSTIC)
+#if defined(DS5000_240) && (defined(DEBUG) || defined(DIAGNOSTIC))
printf("3MIN: imask %x, %sabling slot %d, sc %x addr 0x%x\n",
kn03_tc3_imask, (on? "en" : "dis"), slotno, sc, handler);
#endif