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 In cpu_trampoline, load the ksp from the ...



details:   https://anonhg.NetBSD.org/src/rev/5a0e88f52dcf
branches:  trunk
changeset: 338632:5a0e88f52dcf
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 02 05:09:15 2015 +0000

description:
In cpu_trampoline, load the ksp from the idlelwp after we enable KX.

diffstat:

 sys/arch/mips/mips/locore_mips3.S |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r c14015dfa76a -r 5a0e88f52dcf sys/arch/mips/mips/locore_mips3.S
--- a/sys/arch/mips/mips/locore_mips3.S Tue Jun 02 05:08:21 2015 +0000
+++ b/sys/arch/mips/mips/locore_mips3.S Tue Jun 02 05:09:15 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_mips3.S,v 1.103 2015/06/01 22:55:13 matt Exp $  */
+/*     $NetBSD: locore_mips3.S,v 1.104 2015/06/02 05:09:15 matt Exp $  */
 
 /*
  * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -729,8 +729,6 @@
         nop
        PTR_S   MIPS_CURLWP, CPU_INFO_CURLWP(a0)
 
-       PTR_L   sp, L_MD_UTF(MIPS_CURLWP)       # fetch KSP
-
 #ifdef _LP64
        li      v0, MIPS_SR_KX | MIPS_SR_UX     # allow 64bit addressing
 #else
@@ -739,6 +737,8 @@
        mtc0    v0, MIPS_COP_0_STATUS           # reset to known state
        COP0_SYNC
 
+       PTR_L   sp, L_MD_UTF(MIPS_CURLWP)       # fetch KSP
+
        /*
         * Indicate that no one has called us.
         */
@@ -752,6 +752,13 @@
        PTR_LA  gp, _C_LABEL(_gp)
 #endif
 
+#if 0
+       LONG_L  t0, CPU_INFO_FLAGS(a0)
+       or      t0, t0, CPUF_PRESENT
+       LONG_S  t0, CPU_INFO_FLAGS(a0)
+       sync
+#endif
+
        /*
         * and off we go.
         */



Home | Main Index | Thread Index | Old Index