Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2009 16:53:58 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r199755 - projects/mips/sys/mips/mips
Message-ID:  <200911241653.nAOGrwCw024200@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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