Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips Add mips3_cp0_pg_mask_write() to initialize pa...
details: https://anonhg.NetBSD.org/src/rev/146e54e36c90
branches: trunk
changeset: 584099:146e54e36c90
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Sep 08 15:13:23 2005 +0000
description:
Add mips3_cp0_pg_mask_write() to initialize pagemask register.
diffstat:
sys/arch/mips/include/locore.h | 3 ++-
sys/arch/mips/mips/locore_mips3.S | 16 +++++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r f8ac265b7a02 -r 146e54e36c90 sys/arch/mips/include/locore.h
--- a/sys/arch/mips/include/locore.h Thu Sep 08 15:11:43 2005 +0000
+++ b/sys/arch/mips/include/locore.h Thu Sep 08 15:13:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.h,v 1.68 2004/02/13 11:36:15 wiz Exp $ */
+/* $NetBSD: locore.h,v 1.69 2005/09/08 15:13:23 tsutsui Exp $ */
/*
* Copyright 1996 The Board of Trustees of The Leland Stanford
@@ -119,6 +119,7 @@
uint32_t mips3_cp0_wired_read(void);
void mips3_cp0_wired_write(uint32_t);
+void mips3_cp0_pg_mask_write(uint32_t);
uint64_t mips3_ld(uint64_t *);
void mips3_sd(uint64_t *, uint64_t);
diff -r f8ac265b7a02 -r 146e54e36c90 sys/arch/mips/mips/locore_mips3.S
--- a/sys/arch/mips/mips/locore_mips3.S Thu Sep 08 15:11:43 2005 +0000
+++ b/sys/arch/mips/mips/locore_mips3.S Thu Sep 08 15:13:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore_mips3.S,v 1.86 2003/08/07 16:28:32 agc Exp $ */
+/* $NetBSD: locore_mips3.S,v 1.87 2005/09/08 15:13:23 tsutsui Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -393,6 +393,20 @@
nop
END(mips3_cp0_wired_write)
+/*
+ * void mips3_cp0_pg_mask_write(u_int32_t)
+ *
+ * Set the value of the CP0 PG_MASK register.
+ */
+LEAF(mips3_cp0_pg_mask_write)
+ mtc0 a0, MIPS_COP_0_TLB_PG_MASK
+ COP0_SYNC
+ nop
+ nop
+ j ra
+ nop
+END(mips3_cp0_pg_mask_write)
+
#if defined(_MIPS_BSD_API) && \
(_MIPS_BSD_API == _MIPS_BSD_API_N32 || _MIPS_BSD_API == _MIPS_BSD_API_LP64)
#error mips3_ld and mips3_sd should be adjusted for N32 or LP64
Home |
Main Index |
Thread Index |
Old Index