Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha MULTIPROCESSOR: context switch to cpu's...



details:   https://anonhg.NetBSD.org/src/rev/f49c4da42326
branches:  trunk
changeset: 499415:f49c4da42326
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Nov 19 20:08:36 2000 +0000

description:
MULTIPROCESSOR: context switch to cpu's idle pcb before unlocking the
scheduler in idle so our stack doesn't get stolen out from underneath us.

diffstat:

 sys/arch/alpha/alpha/locore.s |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0c7916dd619e -r f49c4da42326 sys/arch/alpha/alpha/locore.s
--- a/sys/arch/alpha/alpha/locore.s     Sun Nov 19 20:05:25 2000 +0000
+++ b/sys/arch/alpha/alpha/locore.s     Sun Nov 19 20:08:36 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.80 2000/09/04 00:31:59 thorpej Exp $ */
+/* $NetBSD: locore.s,v 1.81 2000/11/19 20:08:36 sommerfeld Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 
 #include <machine/asm.h>
 
-__KERNEL_RCSID(0, "$NetBSD: locore.s,v 1.80 2000/09/04 00:31:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.s,v 1.81 2000/11/19 20:08:36 sommerfeld Exp $");
 
 #include "assym.h"
 
@@ -773,6 +773,9 @@
        GET_CURPROC
        stq     zero, 0(v0)                     /* curproc <- NULL for stats */
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
+       GET_IDLE_PCB(a0)
+       SWITCH_CONTEXT
+       mov     zero,s0                         /* no outgoing proc */
        CALL(sched_unlock_idle)                 /* release sched_lock */
 #endif
        mov     zero, a0                        /* enable all interrupts */



Home | Main Index | Thread Index | Old Index