diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-22 23:27:12 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-22 23:27:12 +0000 |
commit | 6dd778f9528c1acc17dbfca685f51bd5c3750d45 (patch) | |
tree | 45c8be9edc454b787dd06d3d4aee79dccea0a979 /arch/mips/mm/r2300.c | |
parent | f1382dc4850bb459d24a81c6cb0ef93ea7bd4a79 (diff) |
o Fix handling of interrupted syscalls.
o Just count missed heartbeats on Indys but don't print a messages. This
was a bug by itself.
o Fix a crash in exit_mmap().
o Fix scanmem().
o Fix clear_active_bh(), a ~ was missing causing weak performance.
o Remove experimental cache instructions from stackframe.h. It wasn't
improving performance as I was hoping.
o Shrink the size of the exception handler routines in uaccess.h.
o Cleanup, remove dead code in various files.
Diffstat (limited to 'arch/mips/mm/r2300.c')
-rw-r--r-- | arch/mips/mm/r2300.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/mips/mm/r2300.c b/arch/mips/mm/r2300.c index 98dbaaf5c..822cb1a1a 100644 --- a/arch/mips/mm/r2300.c +++ b/arch/mips/mm/r2300.c @@ -3,7 +3,7 @@ * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) * - * $Id: r2300.c,v 1.2 1997/07/01 09:00:49 ralf Exp $ + * $Id: r2300.c,v 1.3 1997/07/29 22:54:51 tsbogend Exp $ */ #include <linux/kernel.h> @@ -253,6 +253,11 @@ static void r2300_add_wired_entry(unsigned long entrylo0, unsigned long entrylo1 */ } +static int r2300_user_mode(struct pt_regs *regs) +{ + return !(regs->cp0_status & 0x4); +} + void ld_mmu_r2300(void) { clear_page = r2300_clear_page; @@ -278,5 +283,6 @@ void ld_mmu_r2300(void) add_wired_entry = r2300_add_wired_entry; + user_mode = r2300_user_mode; flush_tlb_all(); } |