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/r6000.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/r6000.c')
-rw-r--r-- | arch/mips/mm/r6000.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/mm/r6000.c b/arch/mips/mm/r6000.c index 4f792fcd6..d656c897c 100644 --- a/arch/mips/mm/r6000.c +++ b/arch/mips/mm/r6000.c @@ -1,4 +1,4 @@ -/* $Id: r6000.c,v 1.1.1.1 1997/06/01 03:16:38 ralf Exp $ +/* $Id: r6000.c,v 1.2 1997/07/29 22:54:52 tsbogend Exp $ * r6000.c: MMU and cache routines for the R6000 processors. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) @@ -162,6 +162,11 @@ static void r6000_add_wired_entry(unsigned long entrylo0, unsigned long entrylo1 /* XXX */ } +static int r6000_user_mode(struct pt_regs *regs) +{ + return !(regs->cp0_status & 0x4); +} + void ld_mmu_r6000(void) { flush_cache_all = r6000_flush_cache_all; @@ -184,6 +189,8 @@ void ld_mmu_r6000(void) add_wired_entry = r6000_add_wired_entry; + user_mode = r6000_user_mode; + flush_cache_all(); flush_tlb_all(); } |