:: commit 4860f955396e462422f7bd35ccbb054d75568062

mintsuki <mintsuki@protonmail.com> — 2022-10-06 16:39

parents: 6733f194df

limine/smp: Fix stack offset accidentally added twice

diff --git a/common/protos/limine.c b/common/protos/limine.c
index 220544d7..9a40aa30 100644
--- a/common/protos/limine.c
+++ b/common/protos/limine.c
@@ -922,7 +922,7 @@ FEAT_START
 
     for (size_t i = 0; i < cpu_count; i++) {
         void *cpu_stack = ext_mem_alloc(stack_size) + stack_size;
-        smp_info[i].reserved = reported_addr(cpu_stack + stack_size);
+        smp_info[i].reserved = reported_addr(cpu_stack);
     }
 
     struct limine_smp_response *smp_response =
tab: 248 wrap: offon