nuke mips3_clearBEV(). There's really no point in coding a

special-purpose assembly routine for things like this.
This commit is contained in:
cgd 2000-10-05 01:06:06 +00:00
parent 3f1d3c3066
commit 36123017cb
3 changed files with 6 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.h,v 1.47 2000/10/05 00:52:59 cgd Exp $ */
/* $NetBSD: locore.h,v 1.48 2000/10/05 01:06:06 cgd Exp $ */
/*
* Copyright 1996 The Board of Trustees of The Leland Stanford
@ -94,7 +94,6 @@ u_int32_t mips3_write_count(u_int32_t);
u_int32_t mips3_read_compare(void);
void mips3_write_config(u_int32_t);
void mips3_write_compare(u_int32_t);
void mips3_clearBEV(void);
u_int64_t mips3_ld(u_int64_t *);
void mips3_sd(u_int64_t *, u_int64_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore_mips3.S,v 1.55 2000/10/02 22:13:38 cgd Exp $ */
/* $NetBSD: locore_mips3.S,v 1.56 2000/10/05 01:06:06 cgd Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@ -2467,18 +2467,6 @@ LEAF(mips3_write_compare)
nop
END(mips3_write_compare)
/*
* Clear BEV bit if it was set.
*/
LEAF(mips3_clearBEV)
mfc0 v0, MIPS_COP_0_STATUS
or v0, MIPS3_SR_DIAG_BEV
xor v0, MIPS3_SR_DIAG_BEV
mtc0 v0, MIPS_COP_0_STATUS
j ra
nop
END(mips3_clearBEV)
LEAF(mips3_FetchIcache)
lw t1, mips_L1ICacheSize
lw t2, mips_L1ICacheLSize

View File

@ -1,4 +1,4 @@
/* $NetBSD: mips_machdep.c,v 1.105 2000/10/05 00:53:01 cgd Exp $ */
/* $NetBSD: mips_machdep.c,v 1.106 2000/10/05 01:06:07 cgd Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.105 2000/10/05 00:53:01 cgd Exp $");
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.106 2000/10/05 01:06:07 cgd Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_ultrix.h"
@ -310,7 +310,8 @@ mips3_vector_init(mips3_csizebase)
MachFlushCache();
mips3_clearBEV();
/* Clear BEV in SR so we start handling our own exceptions */
mips_cp0_status_write(mips_cp0_status_read() & ~MIPS3_SR_DIAG_BEV);
}
#endif /* MIPS3 */