diff options
author | Ian Moffett <ian@osmora.org> | 2023-12-28 22:22:05 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2023-12-28 22:22:05 -0500 |
commit | 835d2e64c5a658d683fcb5dc46c856af03c41d01 (patch) | |
tree | 2958b6c012a96f0db5fe714483b0048c487103c3 /sys/arch/amd64/amd64 | |
parent | ad84758768c407bd074a8cd2c10674856f5bc549 (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.c | 3 |
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) |