diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-03-20 22:56:30 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-03-20 22:56:30 +0000 |
commit | 6355c1b1cad99b8f4360aab46c3778032f371f2c (patch) | |
tree | 049ae66eedc231bc37814c883bfd142d3b459390 /arch/mips64/kernel | |
parent | 6431552a72f697df1d693ffc15eae5f2575d46e2 (diff) |
Put some kernel debugging output under DEBUG_MIPS64. Kernel folks, please
turn this on when you are debugging.
Diffstat (limited to 'arch/mips64/kernel')
-rw-r--r-- | arch/mips64/kernel/scall_o32.S | 2 | ||||
-rw-r--r-- | arch/mips64/kernel/signal32.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/mips64/kernel/scall_o32.S b/arch/mips64/kernel/scall_o32.S index 246fd8346..a08ce495c 100644 --- a/arch/mips64/kernel/scall_o32.S +++ b/arch/mips64/kernel/scall_o32.S @@ -35,7 +35,7 @@ NESTED(handle_sys, PT_SIZE, sp) SAVE_SOME STI .set at -#if 0 +#if DEBUG_MIPS64 SAVE_ALL ld a1, PT_R2(sp) PRINT("Got syscall %d\n") diff --git a/arch/mips64/kernel/signal32.c b/arch/mips64/kernel/signal32.c index c4cf4a753..5a611272c 100644 --- a/arch/mips64/kernel/signal32.c +++ b/arch/mips64/kernel/signal32.c @@ -236,7 +236,10 @@ sys32_sigreturn(abi64_no_regargs, struct pt_regs regs) { struct sigframe *frame; sigset_t blocked; + +#if DEBUG_MIPS64 printk("%s called.\n", __FUNCTION__); +#endif frame = (struct sigframe *) regs.regs[29]; if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) @@ -554,7 +557,10 @@ asmlinkage int do_signal32(sigset_t *oldset, struct pt_regs *regs) { struct k_sigaction *ka; siginfo_t info; + +#if DEBUG_MIPS64 printk("%s: delivering signal.\n", current->comm); +#endif if (!oldset) oldset = ¤t->blocked; @@ -655,7 +661,9 @@ printk("%s: delivering signal.\n", current->comm); if (regs->regs[0]) syscall_restart(regs, ka); /* Whee! Actually deliver the signal. */ +#if DEBUG_MIPS64 printk("%s: delivering signal.\n", __FUNCTION__); +#endif handle_signal(signr, ka, &info, oldset, regs); return 1; } |