summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-23 14:56:38 -0400
committerIan Moffett <ian@osmora.org>2024-05-23 15:00:08 -0400
commit2f632cea32c83a0a906a41cb41429148e197b14f (patch)
tree3dbb917da02f0c7c4f9a69e0b448b2cf62d5b996
parent78f39e7a12aaa0c27bcd105a6e4f15f209605746 (diff)
kernel/amd64: mp: Don't allocate seperate ci
The machdep layer already handles this Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/arch/amd64/amd64/cpu_mp.c6
1 files changed, 0 insertions, 6 deletions
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;
}
}