From 2f632cea32c83a0a906a41cb41429148e197b14f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 23 May 2024 14:56:38 -0400 Subject: kernel/amd64: mp: Don't allocate seperate ci The machdep layer already handles this Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/cpu_mp.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/cpu_mp.c b/sys/arch/amd64/amd64/cpu_mp.c index 2afdd43..0eb6dba 100644 --- a/sys/arch/amd64/amd64/cpu_mp.c +++ b/sys/arch/amd64/amd64/cpu_mp.c @@ -80,7 +80,6 @@ ap_bootstrap(struct cpu_info *ci) { struct limine_smp_response *resp = g_smp_req.response; struct limine_smp_info **cpus; - struct cpu_info *ap_ci = NULL; size_t cpu_init_counter; /* Should not happen */ @@ -101,11 +100,6 @@ ap_bootstrap(struct cpu_info *ci) continue; } - ap_ci = dynalloc(sizeof(struct cpu_info)); - __assert(ap_ci != NULL); - cpu_attach(ap_ci); - - cpus[i]->extra_argument = (uintptr_t)dynalloc(sizeof(struct cpu_info)); cpus[i]->goto_address = ap_trampoline; } } -- cgit v1.2.3