diff options
Diffstat (limited to 'arch/mips64')
-rw-r--r-- | arch/mips64/kernel/scall_64.S | 13 | ||||
-rw-r--r-- | arch/mips64/kernel/scall_o32.S | 6 | ||||
-rw-r--r-- | arch/mips64/tools/offset.c | 1 |
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/mips64/kernel/scall_64.S b/arch/mips64/kernel/scall_64.S index 6a7a59551..a6ac27f68 100644 --- a/arch/mips64/kernel/scall_64.S +++ b/arch/mips64/kernel/scall_64.S @@ -1,11 +1,10 @@ -/* $Id: scall_64.S,v 1.7 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) 1995, 1996, 1997, 1998, 1999 by Ralf Baechle - * Copyright (C) 1999 Silicon Graphics, Inc. + * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 by Ralf Baechle + * Copyright (C) 1999, 2000 Silicon Graphics, Inc. */ #include <linux/config.h> #include <asm/asm.h> @@ -17,7 +16,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). */ @@ -48,8 +47,8 @@ NESTED(handle_sys64, PT_SIZE, sp) sd a3, PT_R26(sp) # save a3 for syscall restarting - ld t0, TASK_FLAGS($28) # syscall tracing enabled? - andi t0, PF_TRACESYS + ld t0, TASK_PTRACE($28) # syscall tracing enabled? + andi t0, PT_TRACESYS bnez t0, trace_a_syscall jalr t2 # Do The Real Thing (TM) diff --git a/arch/mips64/kernel/scall_o32.S b/arch/mips64/kernel/scall_o32.S index 29ac60a2c..2047c7303 100644 --- a/arch/mips64/kernel/scall_o32.S +++ b/arch/mips64/kernel/scall_o32.S @@ -20,7 +20,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). */ @@ -60,8 +60,8 @@ NESTED(handle_sys, PT_SIZE, sp) bgez t0, stackargs stack_done: - ld t0, TASK_FLAGS($28) # syscall tracing enabled? - andi t0, PF_TRACESYS + ld t0, TASK_PTRACE($28) # syscall tracing enabled? + andi t0, PT_TRACESYS bnez t0, trace_a_syscall jalr t2 # Do The Real Thing (TM) diff --git a/arch/mips64/tools/offset.c b/arch/mips64/tools/offset.c index 6fec8d313..37324533c 100644 --- a/arch/mips64/tools/offset.c +++ b/arch/mips64/tools/offset.c @@ -78,6 +78,7 @@ void output_task_defines(void) offset("#define TASK_FLAGS ", struct task_struct, flags); offset("#define TASK_SIGPENDING ", struct task_struct, sigpending); offset("#define TASK_NEED_RESCHED ", struct task_struct, need_resched); + offset("#define TASK_PTRACE ", struct task_struct, ptrace); offset("#define TASK_COUNTER ", struct task_struct, counter); offset("#define TASK_NICE ", struct task_struct, nice); offset("#define TASK_MM ", struct task_struct, mm); |