entry: Move some initialisation calls to after config initialisation
diff --git a/stage23/entry.s3.c b/stage23/entry.s3.c
index 81f11843..0d1c48e5 100644
--- a/stage23/entry.s3.c
+++ b/stage23/entry.s3.c
@@ -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);
