summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/dev/cpu.c')
-rw-r--r--sys/arch/hppa/dev/cpu.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c
index e86108ea2bd..e829707bb69 100644
--- a/sys/arch/hppa/dev/cpu.c
+++ b/sys/arch/hppa/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.31 2010/03/28 16:26:47 jsing Exp $ */
+/* $OpenBSD: cpu.c,v 1.32 2010/04/01 12:30:38 jsing Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -93,9 +93,17 @@ cpuattach(parent, self, aux)
extern int cpu_hardclock(void *);
struct cpu_softc *sc = (struct cpu_softc *)self;
+ struct confargs *ca = (struct confargs *)aux;
+ struct cpu_info *ci;
u_int mhz = 100 * cpu_ticksnum / cpu_ticksdenom;
+ int cpuno = self->dv_unit;
const char *p;
+ ci = &cpu_info[cpuno];
+ ci->ci_dev = self;
+ ci->ci_cpuid = cpuno;
+ ci->ci_hpa = ca->ca_hpa;
+
printf (": %s ", cpu_typename);
if (pdc_model.hvers) {
static const char lvls[4][4] = { "0", "1", "1.5", "2" };