Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 sun4v: revert some of the logic int...
details: https://anonhg.NetBSD.org/src/rev/6205c2a5b163
branches: trunk
changeset: 336508:6205c2a5b163
user: palle <palle%NetBSD.org@localhost>
date: Wed Mar 04 11:32:31 2015 +0000
description:
sun4v: revert some of the logic introduced in revision 1.378 - flushw is not necessary on sun4v (OpenBSD patches the flushw instruction to a nop instruction) - with these changes the kernel reaches
cpu_boot_secondary_processors() when running in the Legion simulator (crashes due to missing handling of cpu_mondo_trap)
diffstat:
sys/arch/sparc64/sparc64/locore.s | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (45 lines):
diff -r f0b1b9d3c9b2 -r 6205c2a5b163 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Wed Mar 04 11:31:58 2015 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Wed Mar 04 11:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.381 2015/03/02 14:17:06 nakayama Exp $ */
+/* $NetBSD: locore.s,v 1.382 2015/03/04 11:32:31 palle Exp $ */
/*
* Copyright (c) 2006-2010 Matthew R. Green
@@ -3683,7 +3683,7 @@
stx %g5, [%sp + CC64FSZ + STKB + TF_G + ( 5*8)]
stx %g6, [%sp + CC64FSZ + STKB + TF_G + ( 6*8)]
stx %g7, [%sp + CC64FSZ + STKB + TF_G + ( 7*8)]
- ALTERNATE_GLOBALS_SUN4V
+
/*
* In the EMBEDANY memory model %g4 points to the start of the
* data segment. In our case we need to clear it before calling
@@ -3691,8 +3691,6 @@
*/
clr %g4
- flushw ! Do not remove this insn -- causes interrupt loss
- NORMAL_GLOBALS_SUN4V
ba 2f
nop
1:
@@ -3706,7 +3704,7 @@
stx %g5, [%sp + CC64FSZ + STKB + TF_G + ( 5*8)]
stx %g6, [%sp + CC64FSZ + STKB + TF_G + ( 6*8)]
stx %g7, [%sp + CC64FSZ + STKB + TF_G + ( 7*8)]
- ALTERNATE_GLOBALS_SUN4U
+
/*
* In the EMBEDANY memory model %g4 points to the start of the
* data segment. In our case we need to clear it before calling
@@ -3715,7 +3713,7 @@
clr %g4
flushw ! Do not remove this insn -- causes interrupt loss
- NORMAL_GLOBALS_SUN4U
+
2:
rd %y, %l6
INCR64(CPUINFO_VA+CI_NINTR) ! cnt.v_ints++ (clobbers %o0,%o1)
Home |
Main Index |
Thread Index |
Old Index