Browse Source

add uninit_IRQ before enter cmdline or g.

Change-Id: Ia1e2520540e083576c657b5f2ffcf1740a7b3341
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
master
Chong Qiao 4 years ago
parent
commit
a2562a030e
  1. 3
      pmon/cmds/cmd_go.c
  2. 4
      pmon/common/main.c

3
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);

4
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;

Loading…
Cancel
Save