From 835d2e64c5a658d683fcb5dc46c856af03c41d01 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 28 Dec 2023 22:22:05 -0500 Subject: kernel/amd64: cpu: Ensure `bsp_info' is zero'd Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index 81118e1..b9a4cfe 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -33,7 +33,8 @@ __KERNEL_META("$Hyra$: cpu.c, Ian Marco Moffett, " "AMD64 CPU abstraction module"); -static struct cpu_info bsp_info; +/* XXX: Must be zero'd!! */ +static struct cpu_info bsp_info = {0}; struct cpu_info * amd64_get_bsp(void) -- cgit v1.2.3