aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal.c
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2007-02-05 09:24:24 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-10 17:38:46 -0500
commit722bb63de630f9500db1f12ed32e1dd9349a8049 (patch)
treea4579b19efc69adb05e486cc0f64d18f1b85cc92 /arch/mips/kernel/signal.c
parent601dde45f698ee1be5fe03a68b895efe6ca6b858 (diff)
[MIPS] signal: factorize debug code
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/signal.c')
-rw-r--r--arch/mips/kernel/signal.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index d676805a34ba..a5adab1c94c3 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -34,8 +34,6 @@
34 34
35#include "signal-common.h" 35#include "signal-common.h"
36 36
37#define DEBUG_SIG 0
38
39#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) 37#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
40 38
41#if ICACHE_REFILLS_WORKAROUND_WAR == 0 39#if ICACHE_REFILLS_WORKAROUND_WAR == 0
@@ -424,11 +422,9 @@ int setup_frame(struct k_sigaction * ka, struct pt_regs *regs,
424 regs->regs[31] = (unsigned long) frame->sf_code; 422 regs->regs[31] = (unsigned long) frame->sf_code;
425 regs->cp0_epc = regs->regs[25] = (unsigned long) ka->sa.sa_handler; 423 regs->cp0_epc = regs->regs[25] = (unsigned long) ka->sa.sa_handler;
426 424
427#if DEBUG_SIG 425 DEBUGP("SIG deliver (%s:%d): sp=0x%p pc=0x%lx ra=0x%lx\n",
428 printk("SIG deliver (%s:%d): sp=0x%p pc=0x%lx ra=0x%p\n",
429 current->comm, current->pid, 426 current->comm, current->pid,
430 frame, regs->cp0_epc, frame->regs[31]); 427 frame, regs->cp0_epc, regs->regs[31]);
431#endif
432 return 0; 428 return 0;
433 429
434give_sigsegv: 430give_sigsegv:
@@ -484,11 +480,10 @@ int setup_rt_frame(struct k_sigaction * ka, struct pt_regs *regs,
484 regs->regs[31] = (unsigned long) frame->rs_code; 480 regs->regs[31] = (unsigned long) frame->rs_code;
485 regs->cp0_epc = regs->regs[25] = (unsigned long) ka->sa.sa_handler; 481 regs->cp0_epc = regs->regs[25] = (unsigned long) ka->sa.sa_handler;
486 482
487#if DEBUG_SIG 483 DEBUGP("SIG deliver (%s:%d): sp=0x%p pc=0x%lx ra=0x%lx\n",
488 printk("SIG deliver (%s:%d): sp=0x%p pc=0x%lx ra=0x%p\n",
489 current->comm, current->pid, 484 current->comm, current->pid,
490 frame, regs->cp0_epc, regs->regs[31]); 485 frame, regs->cp0_epc, regs->regs[31]);
491#endif 486
492 return 0; 487 return 0;
493 488
494give_sigsegv: 489give_sigsegv: