diff options
author | Dimitry Andric <dim@cvs.openbsd.org> | 2006-11-29 20:03:21 +0000 |
---|---|---|
committer | Dimitry Andric <dim@cvs.openbsd.org> | 2006-11-29 20:03:21 +0000 |
commit | be1eefc2baf28ab9484ecd9842c6cf7dbd312624 (patch) | |
tree | 2e134ae31b3566589c51477924476aa22212a4f1 /sys/arch/i386/include | |
parent | 3a311ba77e608a63dedd111b3163d6955ecdc9ca (diff) |
Remove all the extern cpu_{id,model,whatever} declarations from most
stuff in arch/i386/i386. This should prevent more screwups like the
one I did before in ichpcib.c...
ok dlg@ kettenis@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 19 | ||||
-rw-r--r-- | sys/arch/i386/include/param.h | 4 |
2 files changed, 17 insertions, 6 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index e1954531041..a437cd29c6b 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.82 2006/11/29 12:26:13 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.83 2006/11/29 20:03:20 dim Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -288,16 +288,27 @@ struct cpu_cpuid_feature { }; #ifdef _KERNEL +/* locore.s */ extern int cpu; -extern int cpu_class; +extern int cpu_id; +extern char cpu_vendor[]; /* note: NOT nul-terminated */ +extern char cpu_brandstr[]; +extern int cpuid_level; extern int cpu_miscinfo; extern int cpu_feature; extern int cpu_ecxfeature; -extern int cpu_apmwarn; +extern int cpu_cache_eax; +extern int cpu_cache_ebx; +extern int cpu_cache_ecx; +extern int cpu_cache_edx; +/* machdep.c */ extern int cpu_apmhalt; -extern int cpuid_level; +extern int cpu_class; +extern char cpu_model[]; extern const struct cpu_nocpuid_nameclass i386_nocpuid_cpus[]; extern const struct cpu_cpuid_nameclass i386_cpuid_cpus[]; +/* apm.c */ +extern int cpu_apmwarn; #if defined(I586_CPU) || defined(I686_CPU) extern int pentium_mhz; diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h index 433644f782e..86defa3f2c4 100644 --- a/sys/arch/i386/include/param.h +++ b/sys/arch/i386/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.36 2006/04/27 15:37:53 mickey Exp $ */ +/* $OpenBSD: param.h,v 1.37 2006/11/29 20:03:20 dim Exp $ */ /* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */ /*- @@ -95,7 +95,7 @@ #define USPACE_ALIGN (0) /* u-area alignment 0-none */ #ifndef MSGBUFSIZE -#define MSGBUFSIZE 4*NBPG /* default message buffer size */ +#define MSGBUFSIZE 64*NBPG /* default message buffer size */ #endif /* |