diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 14:56:38 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 15:00:08 -0400 |
commit | 2f632cea32c83a0a906a41cb41429148e197b14f (patch) | |
tree | 3dbb917da02f0c7c4f9a69e0b448b2cf62d5b996 /sys/arch/amd64/amd64 | |
parent | 78f39e7a12aaa0c27bcd105a6e4f15f209605746 (diff) |
kernel/amd64: mp: Don't allocate seperate ci
The machdep layer already handles this
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/cpu_mp.c | 6 |
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; } } |