Add mips3_cp0_pg_mask_write() to initialize pagemask register.
This commit is contained in:
parent
bd2843f4ab
commit
95d5cf1493
|
@ -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 @@ void mips3_cp0_count_write(uint32_t);
|
|||
|
||||
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);
|
||||
|
|
|
@ -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 @@ LEAF(mips3_cp0_wired_write)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue