diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-01-07 20:24:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-01-07 20:24:16 +0000 |
commit | 9f156fceafd219cc5994330c14e3c608ec86eebb (patch) | |
tree | 01251896229c65b8c3d56b8ca0b39cc18fe78b0b /sys/arch/mips64 | |
parent | 73a15037e0c3a93e91942f25e98f7484c911f13f (diff) |
Make sure to update p_cpu on MULTIPROCESSOR kernels.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/context.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/context.S b/sys/arch/mips64/mips64/context.S index d37997091cf..bf022f1f407 100644 --- a/sys/arch/mips64/mips64/context.S +++ b/sys/arch/mips64/mips64/context.S @@ -1,4 +1,4 @@ -/* $OpenBSD: context.S,v 1.36 2010/01/05 06:44:58 syuu Exp $ */ +/* $OpenBSD: context.S,v 1.37 2010/01/07 20:24:15 miod Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -140,6 +140,9 @@ NON_LEAF(cpu_switchto, FRAMESZ(CF_SZ), ra) PTR_S s0, CI_CURPROC(t1) # set curproc PTR_S t3, CI_CURPROCPADDR(t1) +#ifdef MULTIPROCESSOR + PTR_S t1, P_CPU(s0) +#endif li t1, SONPROC sb t1, P_STAT(s0) # set to onproc. |