diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-01-21 20:57:03 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-01-21 20:57:03 +0000 |
commit | e66e939ed6e4ad2017ce48ef3351a1725ccefd2e (patch) | |
tree | e0f4f0b9b9b18343459c2d95b0be5e3237a80953 /sys/i386 | |
parent | ec3af9ecfaae97d7dbe54936d002d261dbc77aad (diff) | |
download | src-e66e939ed6e4ad2017ce48ef3351a1725ccefd2e.tar.gz src-e66e939ed6e4ad2017ce48ef3351a1725ccefd2e.zip |
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)
Notes
Notes:
svn path=/head/; revision=13543
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |