From e66e939ed6e4ad2017ce48ef3351a1725ccefd2e Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 21 Jan 1996 20:57:03 +0000 Subject: [PATCH] Initialize the cpu_class variable. This prevents i386 machines from panicing with a privileged instruction fault early at boot time. Submitted by: rock@wurzelausix.CS.Uni-SB.DE (D. Rock) --- sys/amd64/amd64/machdep.c | 4 ++-- sys/i386/i386/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 942d081b1d84..950cbc24adf1 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.169 1996/01/05 20:12:19 wollman Exp $ + * $Id: machdep.c,v 1.170 1996/01/19 03:57:38 dyson Exp $ */ #include "npx.h" @@ -198,7 +198,7 @@ vm_offset_t phys_avail[10]; /* must be 2 less so 0 0 can signal end of chunks */ #define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(vm_offset_t)) - 2) -int cpu_class; +int cpu_class = CPUCLASS_386; /* smallest common denominator */ static void dumpsys __P((void)); static void setup_netisrs __P((struct linker_set *)); /* XXX declare elsewhere */ diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 942d081b1d84..950cbc24adf1 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.169 1996/01/05 20:12:19 wollman Exp $ + * $Id: machdep.c,v 1.170 1996/01/19 03:57:38 dyson Exp $ */ #include "npx.h" @@ -198,7 +198,7 @@ vm_offset_t phys_avail[10]; /* must be 2 less so 0 0 can signal end of chunks */ #define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(vm_offset_t)) - 2) -int cpu_class; +int cpu_class = CPUCLASS_386; /* smallest common denominator */ static void dumpsys __P((void)); static void setup_netisrs __P((struct linker_set *)); /* XXX declare elsewhere */