PATCH: Support strace
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 */