Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea Make sure to set curlwp (aka r13) in cp...
details: https://anonhg.NetBSD.org/src/rev/f24fceb3911a
branches: trunk
changeset: 766120:f24fceb3911a
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 16 04:25:13 2011 +0000
description:
Make sure to set curlwp (aka r13) in cpu_hatch
diffstat:
sys/arch/powerpc/oea/cpu_subr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9609c678c95f -r f24fceb3911a sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c Thu Jun 16 03:54:40 2011 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c Thu Jun 16 04:25:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_subr.c,v 1.64 2011/06/12 16:27:52 matt Exp $ */
+/* $NetBSD: cpu_subr.c,v 1.65 2011/06/16 04:25:13 matt Exp $ */
/*-
* Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.64 2011/06/12 16:27:52 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.65 2011/06/16 04:25:13 matt Exp $");
#include "opt_ppcparam.h"
#include "opt_multiprocessor.h"
@@ -1296,6 +1296,7 @@
mtspr(SPR_PIR, h->pir);
__asm volatile ("mtsprg0 %0" :: "r"(ci));
+ curlwp = ci->ci_curlwp;
cpu_spinstart_ack = 0;
/* Initialize MMU. */
Home |
Main Index |
Thread Index |
Old Index