mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
Kernel: Split Aarch64 CPU setup into two stages
Former aims to bring the processor itself into desired state, while latter allows for additional initialization with heap available.
This commit is contained in:
parent
97dce5d001
commit
a8e9591bac
3 changed files with 10 additions and 3 deletions
|
@ -147,7 +147,7 @@ extern "C" [[noreturn]] void init()
|
|||
CommandLine::early_initialize("");
|
||||
|
||||
new (&bootstrap_processor()) Processor();
|
||||
bootstrap_processor().initialize(0);
|
||||
bootstrap_processor().install(0);
|
||||
|
||||
// We want to enable the MMU as fast as possible to make the boot faster.
|
||||
init_page_tables();
|
||||
|
@ -159,6 +159,8 @@ extern "C" [[noreturn]] void init()
|
|||
(*ctor)();
|
||||
kmalloc_init();
|
||||
|
||||
bootstrap_processor().initialize();
|
||||
|
||||
load_kernel_symbol_table();
|
||||
|
||||
CommandLine::initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue