Date: Mon, 21 Jan 2008 21:43:05 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133817 for review Message-ID: <200801212143.m0LLh5jN006119@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133817 Change 133817 by imp@imp_lighthouse on 2008/01/21 21:42:49 Use proper PCPU_SET macros to set curthread and curpcb so this code has a chance of compiling in the SMP case. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#17 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#17 (text+ko) ==== @@ -270,9 +270,7 @@ #else pcpu_init(pcpup, 0, sizeof(struct pcpu)); #endif - pcpup->pc_curthread = &thread0; - cpu_thread_alloc(curthread); - pcpup->pc_curpcb = curthread->td_pcb; + cpu_thread_alloc(&thread0); PCPU_SET(curthread, &thread0); PCPU_SET(curpcb, thread0.td_pcb); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801212143.m0LLh5jN006119>