diff --git a/pmon/cmds/cmd_go.c b/pmon/cmds/cmd_go.c index 5f367656..c86be3e0 100644 --- a/pmon/cmds/cmd_go.c +++ b/pmon/cmds/cmd_go.c @@ -98,6 +98,8 @@ extern void usb_ohci_stop(void); #if NMOD_USB_XHCI !=0 extern void usb_ohci_stop(void); #endif +void uninit_IRQ(); + /************************************************************* * go(ac,av), the 'g' command */ @@ -221,6 +223,7 @@ extern char *optarg; #if defined(LOONGSON_2K) ls_pcie_config_set(); #endif + uninit_IRQ(); #if NMOD_DEBUGGER > 0 if (setjmp (go_return_jump) == 0) { cfg_coherent(clientac, clientav); diff --git a/pmon/common/main.c b/pmon/common/main.c index bedf9fde..cef90221 100644 --- a/pmon/common/main.c +++ b/pmon/common/main.c @@ -109,6 +109,9 @@ static void autorun __P((char *)); extern void __init __P((void)); extern void _exit (int retval); extern void delay __P((int)); +void __attribute__((weak)) uninit_IRQ() +{ +} #ifdef INET static void @@ -562,6 +565,7 @@ main() } //#endif + uninit_IRQ(); while(1) { #if 0 while(1){char c;int i;