summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-07 12:14:09 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-07 12:14:09 +0000
commit72ca0a706b4ec4f2708ff0da2cf375ea1a6d4282 (patch)
treee49e073063142879825ca38e41c58fa9f9bff45d /sys/arch/powerpc64
parente59255c55ace73f347fa04152edb999428aa700f (diff)
Allocate a struct, not just a pointer.
Diffstat (limited to 'sys/arch/powerpc64')
-rw-r--r--sys/arch/powerpc64/powerpc64/cpu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/cpu.c b/sys/arch/powerpc64/powerpc64/cpu.c
index 0a65680b803..016570bff59 100644
--- a/sys/arch/powerpc64/powerpc64/cpu.c
+++ b/sys/arch/powerpc64/powerpc64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.2 2020/05/22 15:07:47 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.3 2020/06/07 12:14:08 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -16,6 +16,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/param.h>
+
+#include <machine/cpu.h>
+
char cpu_model[64];
-struct cpu_info *cpu_info_primary;
+struct cpu_info cpu_info_primary;