diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-01-09 20:33:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-01-09 20:33:17 +0000 |
commit | 87b483e2a7df54e7ed2f12b9849b2536d55e9082 (patch) | |
tree | d6b24a614c2a0c15bad70eed78b911b2ef109148 /sys/arch/loongson/include | |
parent | 1c2dbae3782a9af621a9d39b2388249f24e4a16f (diff) |
Define struct cpu_hwinfo, to hold hardware specific information about each
processor (instead of sys_config.cpu[]), and pass it in the attach_args
when attaching cpu devices.
This allows per-cpu information to be gathered late in the bootstrap process,
and not be limited by an arbitrary MAX_CPUS limit; this will suit IP27 and
IP35 systems better.
While there, use this information to make sure delay() uses the speed
information from the cpu it is invoked on.
Diffstat (limited to 'sys/arch/loongson/include')
-rw-r--r-- | sys/arch/loongson/include/autoconf.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/arch/loongson/include/autoconf.h b/sys/arch/loongson/include/autoconf.h index 2925043e969..eb471091533 100644 --- a/sys/arch/loongson/include/autoconf.h +++ b/sys/arch/loongson/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.1 2009/11/21 18:30:18 miod Exp $ */ +/* $OpenBSD: autoconf.h,v 1.2 2010/01/09 20:33:16 miod Exp $ */ /* * Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -38,23 +38,9 @@ /* * Structure holding all misc config information. */ -#define MAX_CPUS 1 - struct sys_rec { int system_type; - struct cpuinfo { - u_int16_t type; - u_int8_t vers_maj; - u_int8_t vers_min; - u_int16_t fptype; - u_int8_t fpvers_maj; - u_int8_t fpvers_min; - u_int32_t clock; - u_int32_t tlbsize; - u_int32_t tlbwired; - } cpu[MAX_CPUS]; - /* Serial console configuration. */ struct mips_bus_space console_io; }; @@ -65,4 +51,6 @@ struct mainbus_attach_args { const char *maa_name; }; +#include <mips64/autoconf.h> + #endif /* _MACHINE_AUTOCONF_H_ */ |