summaryrefslogtreecommitdiffstats
path: root/arch/mips64
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-04-25 16:34:25 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-04-25 16:34:25 +0000
commit2966e5bed08672a8bf467d59b14d7a10f7b60782 (patch)
tree91d43d56fae09e628ae3f5048ced3b1a4f335f81 /arch/mips64
parent3eae3bd10dd78ad075f2e70d511534becaae7914 (diff)
Make the sysentry debugging code a little more versatile.
Diffstat (limited to 'arch/mips64')
-rw-r--r--arch/mips64/kernel/scall_o32.S3
-rw-r--r--arch/mips64/mm/fault.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/arch/mips64/kernel/scall_o32.S b/arch/mips64/kernel/scall_o32.S
index 372b08050..8f09fcc3c 100644
--- a/arch/mips64/kernel/scall_o32.S
+++ b/arch/mips64/kernel/scall_o32.S
@@ -37,8 +37,7 @@ NESTED(handle_sys, PT_SIZE, sp)
.set at
#if DEBUG_MIPS64
SAVE_ALL
- ld a1, PT_R2(sp)
- PRINT("Got syscall %d\n")
+ jal dodebug
RESTORE_ALL
#endif
ld t1, PT_EPC(sp) # skip syscall on return
diff --git a/arch/mips64/mm/fault.c b/arch/mips64/mm/fault.c
index 4feab6a9d..fc69ab2c6 100644
--- a/arch/mips64/mm/fault.c
+++ b/arch/mips64/mm/fault.c
@@ -27,6 +27,7 @@
#include <asm/softirq.h>
#include <asm/system.h>
#include <asm/uaccess.h>
+#include <asm/ptrace.h>
#define development_version (LINUX_VERSION_CODE & 0x100)
@@ -37,6 +38,12 @@ extern void die(char *, struct pt_regs *, unsigned long write);
*/
#define dpf_reg(r) (regs->regs[r])
+asmlinkage void
+dodebug(abi64_no_regargs, struct pt_regs regs)
+{
+ printk("Got syscall %d, cpu %d proc %s:%d epc 0x%lx\n", regs.regs[2], smp_processor_id(), current->comm, current->pid, regs.cp0_epc);
+}
+
/*
* This routine handles page faults. It determines the address,
* and the problem, and then passes it off to one of the appropriate