summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorsoren <soren@NetBSD.org>2000-06-20 02:57:17 +0000
committersoren <soren@NetBSD.org>2000-06-20 02:57:17 +0000
commitd78ff1cd5bcdd2458ef806be8f4befbb2cdbbeba (patch)
tree3f6a97b2ce936bc6b4e8a9b2ca1723db215da695 /sys
parente62920cf2e14b7b9150d44e512229387dc59ad98 (diff)
Add mips3_write_config().
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mips/include/locore.h5
-rw-r--r--sys/arch/mips/mips/locore_mips3.S24
2 files changed, 19 insertions, 10 deletions
diff --git a/sys/arch/mips/include/locore.h b/sys/arch/mips/include/locore.h
index 2ef8920ffba..5bbfb99cbba 100644
--- a/sys/arch/mips/include/locore.h
+++ b/sys/arch/mips/include/locore.h
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.h,v 1.34 2000/06/06 17:41:07 soren Exp $ */
+/* $NetBSD: locore.h,v 1.35 2000/06/20 02:57:19 soren Exp $ */
/*
* Copyright 1996 The Board of Trustees of The Leland Stanford
@@ -86,10 +86,11 @@ void mips3_FlushDCache_2way __P((vaddr_t addr, vaddr_t len));
void mips3_HitFlushDCache_2way __P((vaddr_t, int));
void mips3_FlushICache_2way __P((vaddr_t addr, vaddr_t len));
+u_int32_t mips3_read_config __P((void));
u_int32_t mips3_cycle_count __P((void));
u_int32_t mips3_write_count __P((u_int32_t));
u_int32_t mips3_read_compare __P((void));
-u_int32_t mips3_read_config __P((void));
+void mips3_write_config __P((u_int32_t));
void mips3_write_compare __P((u_int32_t));
void mips3_write_xcontext_upper __P((u_int32_t));
void mips3_clearBEV __P((void));
diff --git a/sys/arch/mips/mips/locore_mips3.S b/sys/arch/mips/mips/locore_mips3.S
index 447999df347..36940bc3f24 100644
--- a/sys/arch/mips/mips/locore_mips3.S
+++ b/sys/arch/mips/mips/locore_mips3.S
@@ -1,4 +1,4 @@
-/* $NetBSD: locore_mips3.S,v 1.35 2000/06/17 01:35:28 cgd Exp $ */
+/* $NetBSD: locore_mips3.S,v 1.36 2000/06/20 02:57:17 soren Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -2454,6 +2454,21 @@ LEAF(mips3_Set64bit)
nop
END(mips3_Set64bit)
+LEAF(mips3_read_config)
+ mfc0 v0, MIPS_COP_0_CONFIG
+ nop
+ j ra
+ nop
+END(mips3_read_config)
+
+LEAF(mips3_write_config)
+ mtc0 a0, MIPS_COP_0_CONFIG
+ nop
+ nop
+ j ra
+ nop
+END(mips3_read_config)
+
/*----------------------------------------------------------------------------
*
* mips3_cycle_count --
@@ -2519,13 +2534,6 @@ LEAF(mips3_read_compare)
nop
END(mips3_read_compare)
-LEAF(mips3_read_config)
- mfc0 v0, MIPS_COP_0_CONFIG
- nop
- j ra
- nop
-END(mips3_read_config)
-
/*
* Write value to compare register.
*