summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2007-05-23 18:29:35 +0000
committerkettenis <kettenis@openbsd.org>2007-05-23 18:29:35 +0000
commitaa5dd2ce464d109718ba23285514f1f2ad0149a1 (patch)
tree96fab183346f3cf698e04dcd427c492461742286
parentsync (diff)
downloadwireguard-openbsd-aa5dd2ce464d109718ba23285514f1f2ad0149a1.tar.xz
wireguard-openbsd-aa5dd2ce464d109718ba23285514f1f2ad0149a1.zip
Add hack to prevent switching to serial console on four-digit B/C/J class
workstations. This makes these machines actually boot. ok miod@
-rw-r--r--sys/arch/hppa/dev/pdc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c
index ff48b53b480..0f1136c042a 100644
--- a/sys/arch/hppa/dev/pdc.c
+++ b/sys/arch/hppa/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.28 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: pdc.c,v 1.29 2007/05/23 18:29:35 kettenis Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -142,6 +142,13 @@ pdc_init()
conaddr = (u_long)pzd->pz_hpa + IOMOD_DEVOFFSET;
conunit = 0;
+ /*
+ * XXX Attaching the serial console on four-digit B/C/J
+ * class workstations, so disable it for now.
+ */
+ if (conaddr == 0xfee003f8 + IOMOD_DEVOFFSET)
+ conaddr = 0;
+
/* compute correct baud rate */
if (PZL_SPEED(pzd->pz_layers[0]) <
sizeof(pdc_speeds) / sizeof(int))