summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-03-20 22:56:30 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-03-20 22:56:30 +0000
commit6355c1b1cad99b8f4360aab46c3778032f371f2c (patch)
tree049ae66eedc231bc37814c883bfd142d3b459390
parent6431552a72f697df1d693ffc15eae5f2575d46e2 (diff)
Put some kernel debugging output under DEBUG_MIPS64. Kernel folks, please
turn this on when you are debugging.
-rw-r--r--arch/mips64/kernel/scall_o32.S2
-rw-r--r--arch/mips64/kernel/signal32.c8
-rw-r--r--arch/mips64/mm/fault.c4
3 files changed, 11 insertions, 3 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 = &current->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;
}
diff --git a/arch/mips64/mm/fault.c b/arch/mips64/mm/fault.c
index 761f68a65..57c667258 100644
--- a/arch/mips64/mm/fault.c
+++ b/arch/mips64/mm/fault.c
@@ -1,4 +1,4 @@
-/* $Id: fault.c,v 1.6 2000/02/18 00:24:31 ralf Exp $
+/* $Id: fault.c,v 1.7 2000/03/13 22:43:25 kanoj Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -59,7 +59,7 @@ do_page_fault(struct pt_regs *regs, unsigned long write, unsigned long address)
*/
if (in_interrupt() || mm == &init_mm)
goto no_context;
-#if 0
+#if DEBUG_MIPS64
printk("[%s:%d:%08lx:%ld:%08lx]\n", current->comm, current->pid,
address, write, regs->cp0_epc);
#endif