PERFORCE change 133817 for review

Warner Losh imp at FreeBSD.org
Mon Jan 21 13:43:06 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133817

Change 133817 by imp at 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);
 }


More information about the p4-projects mailing list