summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGleb O. Raiko <raiko@niisi.msk.ru>1999-10-07 07:34:24 +0000
committerGleb O. Raiko <raiko@niisi.msk.ru>1999-10-07 07:34:24 +0000
commit609d1e803baf519487233b765eb487f9ec227a18 (patch)
treeec561fc5dc50d1c308e15a9e545dd05e8d13e429 /arch
parentbdb7d8cec877a5f3c9eb16d84c6c86cfaa360d79 (diff)
Don't count VCEI/VCED if the proc fs support isn't choosen
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/head.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S
index f6af1d6be..11dd160ec 100644
--- a/arch/mips/kernel/head.S
+++ b/arch/mips/kernel/head.S
@@ -1,4 +1,4 @@
-/* $Id: head.S,v 1.13 1999/08/18 23:37:43 ralf Exp $
+/* $Id: head.S,v 1.14 1999/08/20 21:59:02 ralf Exp $
*
* arch/mips/kernel/head.S
*
@@ -341,23 +341,25 @@ handle_vced:
li k1, -4
and k0, k1
mtc0 zero, CP0_TAGLO
- // nop;nop
cache Index_Store_Tag_D,(k0)
- // nop;nop
cache Hit_Writeback_Inv_SD,(k0)
+#ifdef CONFIG_PROC_FS
lui k0, %hi(vced_count)
lw k1, %lo(vced_count)(k0)
addiu k1, 1
sw k1, %lo(vced_count)(k0)
+#endif
eret
handle_vcei:
mfc0 k0, CP0_BADVADDR
cache Hit_Writeback_Inv_SD,(k0) # also cleans pi
+#ifdef CONFIG_PROC_FS
lui k0, %hi(vcei_count)
lw k1, %lo(vcei_count)(k0)
addiu k1, 1
sw k1, %lo(vcei_count)(k0)
+#endif
eret
END(except_vec3_r4000)