diff options
author | 2001-02-25 15:52:21 +0000 | |
---|---|---|
committer | 2001-02-25 15:52:21 +0000 | |
commit | 58008b086b19886761ed978d8dfaff42d59aeacf (patch) | |
tree | f2c76b66d80baff18f12efcb79e47163158f5191 | |
parent | Provide both system sub type and system variant data for KA45 and KA48. (diff) | |
download | wireguard-openbsd-58008b086b19886761ed978d8dfaff42d59aeacf.tar.xz wireguard-openbsd-58008b086b19886761ed978d8dfaff42d59aeacf.zip |
Use the system subtype field on the SIE to determine if a machine is
VS4000/vlc or MV3100/{3,4}0. This seems to produce more consistent
detection than checking the configuration and test register.
-rw-r--r-- | sys/arch/vax/vax/locore.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/arch/vax/vax/locore.c b/sys/arch/vax/vax/locore.c index de9d48cc143..359eb10bb3d 100644 --- a/sys/arch/vax/vax/locore.c +++ b/sys/arch/vax/vax/locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.c,v 1.13 2001/02/24 10:31:58 hugh Exp $ */ +/* $OpenBSD: locore.c,v 1.14 2001/02/25 15:52:21 hugh Exp $ */ /* $NetBSD: locore.c,v 1.43 2000/03/26 11:39:45 ragge Exp $ */ /* * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden. @@ -152,10 +152,16 @@ start() #if VAX48 case VAX_BTYP_48: dep_call = &ka48_calls; - if (vax_confdata & 0x80) + switch((vax_siedata >> 8) & 0xFF) { + case VAX_STYP_45: strcat(cpu_model, "3100/m{30,40}"); - else - strcat(cpu_model, "4000 VLC"); + break; + case VAX_STYP_48: + strcpy(cpu_model, "VAXstation 4000/VLC"); + break; + default: + strcat(cpu_model, " - Unknown SOC"); + } break; #endif #if VAX49 |