diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-26 14:14:09 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-26 14:14:09 +0000 |
commit | 1731f20a7c5930ee86697d0b15ee1e04e3029655 (patch) | |
tree | 5f57666c63ae13bc30ebbea808119034410fe6b2 /sys/arch/mips64 | |
parent | 8f8ea5f89c891541d416ee42b614d8f284e75186 (diff) |
initialize cpu_info correctly.
ok miod@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c index eb92cd951ba..ca875a7ddfe 100644 --- a/sys/arch/mips64/mips64/cpu.c +++ b/sys/arch/mips64/mips64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.19 2009/11/25 17:39:51 syuu Exp $ */ +/* $OpenBSD: cpu.c,v 1.20 2009/11/26 14:14:08 syuu Exp $ */ /* * Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se) @@ -105,7 +105,6 @@ cpuattach(struct device *parent, struct device *dev, void *aux) #ifdef MULTIPROCESSOR ci->ci_flags |= CPUF_RUNNING | CPUF_PRESENT | CPUF_PRIMARY; cpuset_add(&cpus_running, ci); - ci->ci_ipiih = NULL; #endif } #ifdef MULTIPROCESSOR @@ -113,6 +112,7 @@ cpuattach(struct device *parent, struct device *dev, void *aux) ci = (struct cpu_info *)smp_malloc(sizeof(*ci)); if (ci == NULL) panic("unable to allocate cpu_info\n"); + bzero((char *)ci, sizeof(*ci)); ci->ci_ipiih = (struct intrhand *)smp_malloc(sizeof(*ci->ci_ipiih)); if (ci->ci_ipiih == NULL) |