PERFORCE change 134249 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sun Jan 27 14:21:08 PST 2008


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

Change 134249 by gonzo at gonzo_jeeves on 2008/01/27 22:20:12

	o Initialize td_kstack_pages for thread0 that is used in td_pcb
	    calculation below. Without it td_pcb point at really wrong memory 
	    location and bad things like memory corruption happen.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#19 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#19 (text+ko) ====

@@ -264,6 +264,7 @@
 {
 	proc_linkup(&proc0, &thread0);
 	thread0.td_kstack = kstack0;
+	thread0.td_kstack_pages = KSTACK_PAGES;
 	/* Initialize pcpu info of cpu-zero */
 #ifdef SMP
 	pcpu_init(&__pcpu[0], 0, sizeof(struct pcpu));


More information about the p4-projects mailing list