svn commit: r199755 - projects/mips/sys/mips/mips

Warner Losh imp at FreeBSD.org
Tue Nov 24 16:53:58 UTC 2009


Author: imp
Date: Tue Nov 24 16:53:58 2009
New Revision: 199755
URL: http://svn.freebsd.org/changeset/base/199755

Log:
  looks like there's more to this patch than just this one file.  I'll
  leave it to neel@ to get all the relevant pieces into the tree.
  
  # we now get well into mi_start before we die

Modified:
  projects/mips/sys/mips/mips/machdep.c

Modified: projects/mips/sys/mips/mips/machdep.c
==============================================================================
--- projects/mips/sys/mips/mips/machdep.c	Tue Nov 24 16:32:31 2009	(r199754)
+++ projects/mips/sys/mips/mips/machdep.c	Tue Nov 24 16:53:58 2009	(r199755)
@@ -261,11 +261,8 @@ mips_proc0_init(void)
 {
 	proc_linkup(&proc0, &thread0);
 
-	KASSERT((kstack0 & PAGE_MASK) == 0,
-	    ("kstack0 is not aligned on a page boundary: %#lx\n",
-		(unsigned long)kstack0));
 	thread0.td_kstack = kstack0;
-	thread0.td_kstack_pages = KSTACK_PAGES;
+	thread0.td_kstack_pages = KSTACK_PAGES - 1;
 	thread0.td_md.md_realstack = roundup2(thread0.td_kstack, PAGE_SIZE * 2);
 	/* Initialize pcpu info of cpu-zero */
 #ifdef SMP


More information about the svn-src-projects mailing list