Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2008 22:21:06 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 134249 for review
Message-ID:  <200801272221.m0RML6C6058232@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134249

Change 134249 by gonzo@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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801272221.m0RML6C6058232>