linux-mips
[Top] [All Lists]

PATCH: Support strace

To: linux-mips@linux-mips.org
Subject: PATCH: Support strace
From: "H. J. Lu" <hjl@lucon.org>
Date: Thu, 10 Oct 2002 10:23:17 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
strace includes <asm/system.h>. gcc doesn't like asmlinkage. This patch
helps strace.


H.J.
--- include/asm-mips/system.h.kernel    Sat Oct  5 10:39:23 2002
+++ include/asm-mips/system.h   Thu Oct 10 09:47:51 2002
@@ -24,6 +24,8 @@
 #include <asm/addrspace.h>
 #include <asm/ptrace.h>
 
+#ifdef __KERNEL__
+
 __asm__ (
        ".macro\t__sti\n\t"
        ".set\tpush\n\t"
@@ -322,4 +324,6 @@ extern void __die_if_kernel(const char *
 #define die_if_kernel(msg, regs)                                       \
        __die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__)
 
+#endif /* __KERNEL__ */
+
 #endif /* _ASM_SYSTEM_H */

<Prev in Thread] Current Thread [Next in Thread>
  • PATCH: Support strace, H. J. Lu <=