Make sure to set curlwp (aka r13) in cpu_hatch
This commit is contained in:
parent
515855d909
commit
2d362a7a23
|
@ -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 @@ cpu_hatch(void)
|
|||
mtspr(SPR_PIR, h->pir);
|
||||
|
||||
__asm volatile ("mtsprg0 %0" :: "r"(ci));
|
||||
curlwp = ci->ci_curlwp;
|
||||
cpu_spinstart_ack = 0;
|
||||
|
||||
/* Initialize MMU. */
|
||||
|
|
Loading…
Reference in New Issue