From cbc450c24e67cfbf31b4b8f5f481ecc42cae596c Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 27 Feb 2021 17:01:13 -0700 Subject: [PATCH] Kernel: Fix KUBSAN warnings due to unaligned APIC variables --- Kernel/Arch/i386/Boot/boot.S | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/Arch/i386/Boot/boot.S b/Kernel/Arch/i386/Boot/boot.S index b55acf9cae..f9630206e0 100644 --- a/Kernel/Arch/i386/Boot/boot.S +++ b/Kernel/Arch/i386/Boot/boot.S @@ -378,6 +378,7 @@ apic_ap_start32_2: .global apic_ap_start_size apic_ap_start_size: .2byte end_apic_ap_start - apic_ap_start +.align 4 ap_cpu_id: .4byte 0x0 ap_cpu_gdt: