Skip to contentSkip to conversation

PATCH: Support strace

PATCH H. J. Lu 1 participant 1 message Oct 10, 2002 MIPS

lore
Share & tools
lore

H. J. Lu

author
#0 lore raw

strace includes <asm/system.h>. gcc doesn't like asmlinkage. This patch helps strace.

H.J.

asm-mips/system.h renamed from asm-mips/system.h.kernel +4 -0
@@ -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 */