summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-02-09 00:43:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-02-09 00:43:41 +0100
commite37594f2bf23d2c02e201452fc2911453e5f21b7 (patch)
treeb92be98f39f6716958b166ee5ec2a542b1f090a6 /i386/i386at/model_dep.c
parent274626ed5398db8e44dc995078dbd00e2aa0c1b0 (diff)
SMP: Fix allocating the apboot page
vm_page_grab_contig does not necessarily allocate at the beginning of the DMA segment, so rather allocate by hand very early.
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 789271fd..a8f9b866 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -217,14 +217,6 @@ void machine_init(void)
#ifdef APIC
/*
- * Grab an early page for AP boot code
- */
- /* FIXME: this may not allocate from below 1MB, if within first 16MB */
- apboot_addr = vm_page_to_pa(vm_page_grab_contig(PAGE_SIZE, VM_PAGE_SEL_DMA));
- apboot_addr = 0x3000;
- assert (apboot_addr < 0x100000);
-
- /*
* Patch the realmode gdt with the correct offset and the first jmp to
* protected mode with the correct target.
*/