summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/amd64
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-28 22:22:05 -0500
committerIan Moffett <ian@osmora.org>2023-12-28 22:22:05 -0500
commit835d2e64c5a658d683fcb5dc46c856af03c41d01 (patch)
tree2958b6c012a96f0db5fe714483b0048c487103c3 /sys/arch/amd64/amd64
parentad84758768c407bd074a8cd2c10674856f5bc549 (diff)
kernel/amd64: cpu: Ensure `bsp_info' is zero'd
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r--sys/arch/amd64/amd64/cpu.c3
1 files changed, 2 insertions, 1 deletions
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)