From 88b4ab388b14f5b60a84baa3756db642898f2ac4 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Sat, 13 Apr 2024 11:23:30 +0200 Subject: [PATCH] Postpone IOP reset --- ee/ps2link.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ee/ps2link.c b/ee/ps2link.c index 49a3e9e..d566140 100644 --- a/ee/ps2link.c +++ b/ee/ps2link.c @@ -218,9 +218,15 @@ int main(int argc, char *argv[]) SifInitRpc(0); init_scr(); + printWelcomeInfo(); + if (if_conf_len == 0) { + scr_printf("Initial boot, will load config then reset\n"); + getIpConfig(); + pkoReset(); // Will restart execution + } + installExceptionHandlers(); restartIOP(); - printWelcomeInfo(); strcpy(elfName, argv[0]); dbgscr_printf("argv[0] is %s\n", elfName); @@ -228,12 +234,6 @@ int main(int argc, char *argv[]) dbgscr_printf("loading modules\n"); loadModules(); - if (if_conf_len == 0) { - scr_printf("Initial boot, will load config then reset\n"); - getIpConfig(); - pkoReset(); // Will restart execution - } - scr_printf("Using cached config\n"); printIpConfig();