Module Name: src Committed By: matt Date: Thu Jun 16 04:25:13 UTC 2011
Modified Files: src/sys/arch/powerpc/oea: cpu_subr.c Log Message: Make sure to set curlwp (aka r13) in cpu_hatch To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/arch/powerpc/oea/cpu_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/oea/cpu_subr.c diff -u src/sys/arch/powerpc/oea/cpu_subr.c:1.64 src/sys/arch/powerpc/oea/cpu_subr.c:1.65 --- src/sys/arch/powerpc/oea/cpu_subr.c:1.64 Sun Jun 12 16:27:52 2011 +++ src/sys/arch/powerpc/oea/cpu_subr.c Thu Jun 16 04:25:13 2011 @@ -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. */