Add mips3_write_config().

This commit is contained in:
soren 2000-06-20 02:57:17 +00:00
parent e62920cf2e
commit d78ff1cd5b
2 changed files with 19 additions and 10 deletions

View File

@ -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 * 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_HitFlushDCache_2way __P((vaddr_t, int));
void mips3_FlushICache_2way __P((vaddr_t addr, vaddr_t len)); 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_cycle_count __P((void));
u_int32_t mips3_write_count __P((u_int32_t)); u_int32_t mips3_write_count __P((u_int32_t));
u_int32_t mips3_read_compare __P((void)); 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_compare __P((u_int32_t));
void mips3_write_xcontext_upper __P((u_int32_t)); void mips3_write_xcontext_upper __P((u_int32_t));
void mips3_clearBEV __P((void)); void mips3_clearBEV __P((void));

View File

@ -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) * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@ -2454,6 +2454,21 @@ LEAF(mips3_Set64bit)
nop nop
END(mips3_Set64bit) 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 -- * mips3_cycle_count --
@ -2519,13 +2534,6 @@ LEAF(mips3_read_compare)
nop nop
END(mips3_read_compare) 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. * Write value to compare register.
* *