-/* $OpenBSD: locore.s,v 1.195 2022/08/15 04:17:50 daniel Exp $ */
+/* $OpenBSD: locore.s,v 1.196 2022/08/22 08:53:55 jsg Exp $ */
/* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */
/*-
*/
.data
- .globl _C_LABEL(cpu), _C_LABEL(cpu_id), _C_LABEL(cpu_vendor)
+ .globl _C_LABEL(cpu_id), _C_LABEL(cpu_vendor)
.globl _C_LABEL(cpu_brandstr)
.globl _C_LABEL(cpuid_level)
.globl _C_LABEL(cpu_miscinfo)
.long 0
#endif
-_C_LABEL(cpu): .long 0 # are we 486, 586 or 686
_C_LABEL(cpu_id): .long 0 # saved from 'cpuid' instruction
_C_LABEL(cpu_pae): .long 0 # are we using PAE paging mode?
_C_LABEL(cpu_miscinfo): .long 0 # misc info (apic/brand id) from 'cpuid'
-/* $OpenBSD: locore0.S,v 1.8 2022/08/20 23:33:53 daniel Exp $ */
+/* $OpenBSD: locore0.S,v 1.9 2022/08/22 08:53:55 jsg Exp $ */
/* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */
/*-
testl %eax,%eax
jnz .Ltry586
-.Lis486: movl $CPU_486,RELOC(_C_LABEL(cpu))
+.Lis486:
jmp 2f
-/* $OpenBSD: machdep.c,v 1.654 2022/08/20 23:33:53 daniel Exp $ */
+/* $OpenBSD: machdep.c,v 1.655 2022/08/22 08:53:55 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
*/
char cpu_model[120];
-/*
- * Note: these are just the ones that may not have a cpuid instruction.
- * We deal with the rest in a different way.
- */
-const struct cpu_nocpuid_nameclass i386_nocpuid_cpus[] = {
- { CPUVENDOR_INTEL, "Intel", "486DX", CPUCLASS_486,
- NULL}, /* CPU_486 */
-};
-
const char *classnames[] = {
"",
"486",
extern uint32_t cpu_meltdown;
if (cpuid_level == -1) {
-#ifdef DIAGNOSTIC
- if (cpu < 0 || cpu >=
- (sizeof i386_nocpuid_cpus/sizeof(struct cpu_nocpuid_nameclass)))
- panic("unknown cpu type %d", cpu);
-#endif
- name = i386_nocpuid_cpus[cpu].cpu_name;
- vendor = i386_nocpuid_cpus[cpu].cpu_vendor;
- vendorname = i386_nocpuid_cpus[cpu].cpu_vendorname;
+ name = "486DX";
+ vendor = CPUVENDOR_INTEL;
+ vendorname = "Intel";
model = -1;
step = -1;
- class = i386_nocpuid_cpus[cpu].cpu_class;
- ci->cpu_setup = i386_nocpuid_cpus[cpu].cpu_setup;
+ class = CPUCLASS_486;
+ ci->cpu_setup = NULL;
modifier = "";
token = "";
} else {
-/* $OpenBSD: mptramp.s,v 1.25 2018/03/31 13:45:03 bluhm Exp $ */
+/* $OpenBSD: mptramp.s,v 1.26 2022/08/22 08:53:55 jsg Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
MP_TRAMP_DATA
#define _TRMP_DATA_OFFSET(a) a = . - _C_LABEL(mp_tramp_data_start)
- .globl _C_LABEL(cpu),_C_LABEL(cpu_id),_C_LABEL(cpu_vendor)
+ .globl _C_LABEL(cpu_id),_C_LABEL(cpu_vendor)
.globl _C_LABEL(cpuid_level),_C_LABEL(cpu_feature)
.global _C_LABEL(cpu_spinup_trampoline)
-/* $OpenBSD: cpu.h,v 1.176 2022/07/12 05:45:49 jsg Exp $ */
+/* $OpenBSD: cpu.h,v 1.177 2022/08/22 08:53:55 jsg Exp $ */
/* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */
/*-
*/
#include <machine/cputypes.h>
-struct cpu_nocpuid_nameclass {
- int cpu_vendor;
- const char *cpu_vendorname;
- const char *cpu_name;
- int cpu_class;
- void (*cpu_setup)(struct cpu_info *);
-};
-
struct cpu_cpuid_nameclass {
const char *cpu_id;
int cpu_vendor;
};
/* locore.s */
-extern int cpu;
extern int cpu_id;
extern char cpu_vendor[]; /* note: NOT nul-terminated */
extern char cpu_brandstr[];
extern int cpu_apmhalt;
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[];
extern void (*cpu_idle_enter_fcn)(void);
extern void (*cpu_idle_cycle_fcn)(void);
-/* $OpenBSD: cputypes.h,v 1.14 2022/08/20 23:33:53 daniel Exp $ */
+/* $OpenBSD: cputypes.h,v 1.15 2022/08/22 08:53:55 jsg Exp $ */
/* $NetBSD: cputypes.h,v 1.10 1997/10/18 04:51:03 mikel Exp $ */
/*
#define CPUCLASS_586 2
#define CPUCLASS_686 3
-/*
- * Kind of Processor.
- */
-
-#define CPU_486 0 /* Intel 80486DX */
-
/*
* CPU vendors
*/