We should consider the early boot period to end when we stop using the
boot allocator. This is inline with x86 and will be helpful to know
whether we should allocate memory from the boot allocator or xenheap.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
end_boot_allocator();
+ /*
+ * The memory subsystem has been initialized, we can now switch from
+ * early_boot -> boot.
+ */
+ system_state = SYS_STATE_boot;
+
vm_init();
if ( acpi_disabled )
console_init_preirq();
console_init_ring();
- system_state = SYS_STATE_boot;
-
processor_id();
smp_init_cpus();