File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -345,8 +345,9 @@ UNMAP_AFTER_INIT void APIC::setup_ap_boot_environment()
345
345
// * aps_to_enable u32 values for ap_cpu_init_stacks
346
346
// * aps_to_enable u32 values for ap_cpu_init_processor_info_array
347
347
constexpr u64 apic_startup_region_base = 0x8000 ;
348
- VERIFY (apic_startup_region_base + apic_ap_start_size < USER_RANGE_BASE);
349
- auto apic_startup_region = create_identity_mapped_region (PhysicalAddress (apic_startup_region_base), Memory::page_round_up (apic_ap_start_size + (2 * aps_to_enable * sizeof (u32 ))).release_value_but_fixme_should_propagate_errors ());
348
+ auto apic_startup_region_size = Memory::page_round_up (apic_ap_start_size + (2 * aps_to_enable * sizeof (FlatPtr))).release_value_but_fixme_should_propagate_errors ();
349
+ VERIFY (apic_startup_region_size < USER_RANGE_BASE);
350
+ auto apic_startup_region = create_identity_mapped_region (PhysicalAddress (apic_startup_region_base), apic_startup_region_size);
350
351
u8 * apic_startup_region_ptr = apic_startup_region->vaddr ().as_ptr ();
351
352
memcpy (apic_startup_region_ptr, reinterpret_cast <const void *>(apic_ap_start), apic_ap_start_size);
352
353
You can’t perform that action at this time.
0 commit comments