:: commit 10ce8e07bf5c76a1aaeb47161b92c32ea500c1c7

mintsuki <mintsuki@protonmail.com> — 2020-09-18 22:21

parents: 132ff2fdbe

Do not align allocations in init_smp

diff --git a/limine.bin b/limine.bin
index bbd0e83a..f2a1637f 100644
Binary files a/limine.bin and b/limine.bin differ
diff --git a/stage2/sys/smp.c b/stage2/sys/smp.c
index 72eaa8b9..d5811771 100644
--- a/stage2/sys/smp.c
+++ b/stage2/sys/smp.c
@@ -88,7 +88,7 @@ struct smp_information *init_smp(size_t   *cpu_count,
     struct gdtr gdtr;
     asm volatile ("sgdt %0" :: "m"(gdtr));
 
-    struct smp_information *ret = balloc(0);
+    struct smp_information *ret = balloc_aligned(0, 1);
     *cpu_count = 1;
 
     // Parse the MADT entries
tab: 248 wrap: offon