summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-01-21 20:57:03 +0000
committerjoerg <joerg@FreeBSD.org>1996-01-21 20:57:03 +0000
commit7c9652cccf832ee0f93c49772b7a05e913e66e06 (patch)
treee0f4f0b9b9b18343459c2d95b0be5e3237a80953
parent95cb956a94612c7f71cab5abeb0c75848a0cb5d7 (diff)
downloadFreeBSD-src-7c9652cccf832ee0f93c49772b7a05e913e66e06.zip
FreeBSD-src-7c9652cccf832ee0f93c49772b7a05e913e66e06.tar.gz
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)
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/i386/i386/machdep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 942d081..950cbc2 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 942d081..950cbc2 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 */
OpenPOWER on IntegriCloud