patch-2.2.18 linux/arch/ppc/xmon/xmon.c
Next file: linux/arch/s390/boot/ipleckd.S
Previous file: linux/arch/ppc/xmon/start.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Nov 8 23:00:34 2000
- Orig file:
v2.2.17/arch/ppc/xmon/xmon.c
- Orig date:
Fri Apr 21 12:45:48 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/ppc/xmon/xmon.c linux/arch/ppc/xmon/xmon.c
@@ -86,6 +86,9 @@
extern int setjmp(u_int *);
extern void longjmp(u_int *, int);
+extern void xmon_enter(void);
+extern void xmon_leave(void);
+
#define GETWORD(v) (((v)[0] << 24) + ((v)[1] << 16) + ((v)[2] << 8) + (v)[3])
static char *help_string = "\
@@ -139,6 +142,7 @@
msr = get_msr();
set_msr(msr & ~0x8000); /* disable interrupts */
remove_bpts();
+ xmon_enter();
excprint(excp);
cmd = cmds(excp);
if (cmd == 's') {
@@ -151,6 +155,7 @@
xmon_trace = 0;
insert_bpts();
}
+ xmon_leave();
set_msr(msr); /* restore interrupt enable */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)