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
This commit is contained in:
Warner Losh 2009-11-24 16:53:58 +00:00
parent 04c50bba10
commit 73ee766076
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=199755

View File

@ -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