diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/mips/mm/cex-gen.S |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/mips/mm/cex-gen.S')
-rw-r--r-- | arch/mips/mm/cex-gen.S | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/mips/mm/cex-gen.S b/arch/mips/mm/cex-gen.S new file mode 100644 index 000000000000..e743622fd24d --- /dev/null +++ b/arch/mips/mm/cex-gen.S | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1995 - 1999 Ralf Baechle | ||
7 | * Copyright (C) 1999 Silicon Graphics, Inc. | ||
8 | * | ||
9 | * Cache error handler | ||
10 | */ | ||
11 | #include <asm/asm.h> | ||
12 | #include <asm/regdef.h> | ||
13 | #include <asm/mipsregs.h> | ||
14 | #include <asm/stackframe.h> | ||
15 | |||
16 | /* | ||
17 | * Game over. Go to the button. Press gently. Swear where allowed by | ||
18 | * legislation. | ||
19 | */ | ||
20 | LEAF(except_vec2_generic) | ||
21 | .set noreorder | ||
22 | .set noat | ||
23 | .set mips0 | ||
24 | /* | ||
25 | * This is a very bad place to be. Our cache error | ||
26 | * detection has triggered. If we have write-back data | ||
27 | * in the cache, we may not be able to recover. As a | ||
28 | * first-order desperate measure, turn off KSEG0 cacheing. | ||
29 | */ | ||
30 | mfc0 k0,CP0_CONFIG | ||
31 | li k1,~CONF_CM_CMASK | ||
32 | and k0,k0,k1 | ||
33 | ori k0,k0,CONF_CM_UNCACHED | ||
34 | mtc0 k0,CP0_CONFIG | ||
35 | /* Give it a few cycles to sink in... */ | ||
36 | nop | ||
37 | nop | ||
38 | nop | ||
39 | |||
40 | j cache_parity_error | ||
41 | nop | ||
42 | END(except_vec2_generic) | ||