cpu_feature is not set (nor used) by locore since SMP, so move the
definition to C code
This commit is contained in:
parent
1fa5ee8d10
commit
491828ab43
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore.S,v 1.10 2003/05/13 09:35:16 fvdl Exp $ */
|
||||
/* $NetBSD: locore.S,v 1.11 2003/06/26 16:47:15 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -184,7 +184,6 @@
|
|||
.data
|
||||
|
||||
.globl _C_LABEL(cpu)
|
||||
.globl _C_LABEL(cpu_feature)
|
||||
.globl _C_LABEL(esym),_C_LABEL(boothowto)
|
||||
.globl _C_LABEL(bootinfo),_C_LABEL(atdevbase)
|
||||
#ifdef COMPAT_OLDBOOT
|
||||
|
@ -224,8 +223,6 @@ _C_LABEL(lapic_tpr):
|
|||
|
||||
_C_LABEL(cpu): .long 0 # are we 386, 386sx, or 486,
|
||||
# or Pentium, or..
|
||||
_C_LABEL(cpu_feature): .long 0 # feature flags from 'cpuid'
|
||||
# instruction
|
||||
_C_LABEL(esym): .long 0 # ptr to end of syms
|
||||
_C_LABEL(atdevbase): .long 0 # location of start of iomem in virtual
|
||||
_C_LABEL(proc0paddr): .long 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.523 2003/06/23 11:01:19 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.524 2003/06/26 16:47:15 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -76,7 +76,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.523 2003/06/23 11:01:19 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.524 2003/06/26 16:47:15 drochner Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
#include "opt_ddb.h"
|
||||
|
@ -228,6 +228,7 @@ static int exec_nomid __P((struct proc *, struct exec_package *));
|
|||
int physmem;
|
||||
int dumpmem_low;
|
||||
int dumpmem_high;
|
||||
unsigned int cpu_feature;
|
||||
int cpu_class;
|
||||
int i386_fpu_present;
|
||||
int i386_fpu_exception;
|
||||
|
|
Loading…
Reference in New Issue