From f67e4ffc79905482c3b9b8c8dd65197bac7eb508 Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Mon, 9 Aug 1999 19:43:13 +0000 Subject: My proposal for non-generic kernels: o only code for the configured CPU is compiled and linked (saves ~100k for R3000 kernels!) o removed a lot of indirect function calls o removed Ralf's "cowboy patch" o added sanity check for DECstations (print warning if the kernel is configured for the wrong CPU) --- include/asm-mips/ptrace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/asm-mips/ptrace.h') diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index e7db7a022..2531fb863 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h @@ -60,11 +60,11 @@ struct pt_regs { /* * Does the process account for user or for system time? */ -#define user_mode(regs) ((regs)->cp0_status & KU_USER) +#define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER) #define instruction_pointer(regs) ((regs)->cp0_epc) -extern void (*show_regs)(struct pt_regs *); +extern void show_regs(struct pt_regs *); #endif /* !(__ASSEMBLY__) */ #endif -- cgit v1.2.3