summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugh <hugh@openbsd.org>2001-04-01 19:17:38 +0000
committerhugh <hugh@openbsd.org>2001-04-01 19:17:38 +0000
commita4c676998595693d42d221c01ccd6cacdefbe4a5 (patch)
tree8b626d8f032145676e34d0f2f80abc804c899176
parentPick up a change from NetBSD: (diff)
downloadwireguard-openbsd-a4c676998595693d42d221c01ccd6cacdefbe4a5.tar.xz
wireguard-openbsd-a4c676998595693d42d221c01ccd6cacdefbe4a5.zip
Print KA48 or KA45 as appropriate. Someone with a 4000/vlc or 3100/{3,4}0
could test this in the next snapshot.
-rw-r--r--sys/arch/vax/vax/ka48.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/ka48.c b/sys/arch/vax/vax/ka48.c
index 460f343afe7..00f42c91330 100644
--- a/sys/arch/vax/vax/ka48.c
+++ b/sys/arch/vax/vax/ka48.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ka48.c,v 1.2 2001/02/25 15:55:27 hugh Exp $ */
+/* $OpenBSD: ka48.c,v 1.3 2001/04/01 19:17:38 hugh Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -86,7 +86,18 @@ struct cpu_dep ka48_calls = {
void
ka48_conf()
{
- printf("cpu: KA48\n");
+ char *cpuname;
+ switch((vax_siedata >> 8) & 0xFF) {
+ case VAX_STYP_45:
+ cpuname = "KA45";
+ break;
+ case VAX_STYP_48:
+ cpuname = "KA48";
+ break;
+ default:
+ cpuname = "unknown SOC";
+ }
+ printf("cpu: %s\n", cpuname);
ka48_cpu = (void *)vax_map_physmem(VS_REGS, 1);
printf("cpu: turning on floating point chip\n");
mtpr(2, PR_ACCS); /* Enable floating points */