diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-24 02:38:04 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-24 02:38:04 +0000 |
commit | 5b96314261efad15e5d91cd22ee79e56ad9173ba (patch) | |
tree | 421789b5743e13b1631d59469a87baac203b6516 /arch/mips/kernel | |
parent | 3b8d66c1df6a809505e9958a5138ab45bbf183d2 (diff) |
Fix syscall tracing.
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/scall_o32.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall_o32.S b/arch/mips/kernel/scall_o32.S index 0135a6c62..ddf69a964 100644 --- a/arch/mips/kernel/scall_o32.S +++ b/arch/mips/kernel/scall_o32.S @@ -1,10 +1,9 @@ -/* $Id: scall_o32.S,v 1.10 2000/02/23 00:41:00 ralf 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 * for more details. * - * Copyright (C) 1997, 1998 by Ralf Baechle + * Copyright (C) 1997, 1998, 1999, 2000 by Ralf Baechle */ #include <asm/asm.h> #include <linux/errno.h> @@ -16,7 +15,7 @@ #include <asm/unistd.h> /* This duplicates the definition from <linux/sched.h> */ -#define PF_TRACESYS 0x00000020 /* tracing system calls */ +#define PT_TRACESYS 0x00000002 /* tracing system calls */ /* This duplicates the definition from <asm/signal.h> */ #define SIGILL 4 /* Illegal instruction (ANSI). */ @@ -50,8 +49,8 @@ NESTED(handle_sys, PT_SIZE, sp) stack_done: sw a3, PT_R26(sp) # save for syscall restart - lw t0, TASK_FLAGS($28) # syscall tracing enabled? - andi t0, PF_TRACESYS + lw t0, TASK_PTRACE($28) # syscall tracing enabled? + andi t0, PT_TRACESYS bnez t0, trace_a_syscall jalr t2 # Do The Real Thing (TM) |