entry: Move some initialisation calls to after config initialisation

This commit is contained in:
mintsuki 2021-09-21 18:40:23 +02:00
parent 46be45fabc
commit 56ceffb44b

View File

@ -125,9 +125,6 @@ __attribute__((section(".stage3_entry")))
#endif
__attribute__((noreturn))
void stage3_common(void) {
init_flush_irqs();
init_io_apics();
volume_iterate_parts(boot_volume,
if (!init_config_disk(_PART)) {
boot_volume = _PART;
@ -145,6 +142,9 @@ void stage3_common(void) {
if (randomise_mem)
pmm_randomise_memory();
init_flush_irqs();
init_io_apics();
if (verbose) {
print("Boot drive: %x\n", boot_volume->index);
print("Boot partition: %d\n", boot_volume->partition);