From 72ca0a706b4ec4f2708ff0da2cf375ea1a6d4282 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 7 Jun 2020 12:14:09 +0000 Subject: Allocate a struct, not just a pointer. --- sys/arch/powerpc64/powerpc64/cpu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 @@ -16,6 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include + +#include + char cpu_model[64]; -struct cpu_info *cpu_info_primary; +struct cpu_info cpu_info_primary; -- cgit v1.2.3