diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-10 18:06:02 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-10 18:06:02 +0000 |
commit | e5cb4909c73ef78071aaa5ea48ac20d7e031f316 (patch) | |
tree | 631e6cd583990d86f34c93af967e5b22237b9427 | |
parent | c2240bc25bc2b76da1b93416998817bb03248582 (diff) |
Don't zero out the cpu_info in cpu_attach. We've already set a field in
it (curproc) and it's allocated from zeroed memory anyway.
deraadt@ ok and test.
-rw-r--r-- | sys/arch/sparc/sparc/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c index e535c920705..0788428450f 100644 --- a/sys/arch/sparc/sparc/cpu.c +++ b/sys/arch/sparc/sparc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.42 2007/05/08 07:23:18 art Exp $ */ +/* $OpenBSD: cpu.c,v 1.43 2007/05/10 18:06:01 art Exp $ */ /* $NetBSD: cpu.c,v 1.56 1997/09/15 20:52:36 pk Exp $ */ /* @@ -244,7 +244,6 @@ cpu_attach(parent, self, aux) if (sc->cacheinfo.c_totalsize != 0) cache_print(sc); - memset(&sc->ci, 0, sizeof(sc->ci)); sc->ci.ci_softc = sc; if (sc->master) { |