Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Save a few instructions and use ei on mip...
details: https://anonhg.NetBSD.org/src/rev/858fcd898ea2
branches: trunk
changeset: 338680:858fcd898ea2
user: matt <matt%NetBSD.org@localhost>
date: Wed Jun 03 17:55:26 2015 +0000
description:
Save a few instructions and use ei on mipsNNr2.
diffstat:
sys/arch/mips/mips/locore.S | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 12dc6e8ff3b9 -r 858fcd898ea2 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Wed Jun 03 17:53:23 2015 +0000
+++ b/sys/arch/mips/mips/locore.S Wed Jun 03 17:55:26 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.193 2015/06/02 05:06:23 matt Exp $ */
+/* $NetBSD: locore.S,v 1.194 2015/06/03 17:55:26 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -184,9 +184,13 @@
/*
* Now enable interrupts (but they are all masked).
*/
+#if __mips_isa_rev >= 2
+ ei
+#else
mfc0 v0, MIPS_COP_0_STATUS
or v0, MIPS_SR_INT_IE
mtc0 v0, MIPS_COP_0_STATUS
+#endif
COP0_SYNC
jal _C_LABEL(main) # main(void)
Home |
Main Index |
Thread Index |
Old Index