Date: Thu, 11 Mar 2004 20:24:05 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 48756 for review Message-ID: <200403120424.i2C4O5XI036945@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48756 Change 48756 by jmallett@jmallett_oingo on 2004/03/11 20:23:49 Run on real kstack... Seems to work. Affected files ... .. //depot/projects/mips/sys/mips/mips/locore.S#11 edit .. //depot/projects/mips/sys/mips/mips/machdep.c#40 edit .. //depot/projects/mips/sys/mips/mips/pmap.c#31 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/locore.S#11 (text+ko) ==== @@ -28,12 +28,13 @@ #include <machine/asm.h> #include <machine/cpuregs.h> +#include <machine/param.h> #include "assym.s" .data GLOBAL(stackspace) - .space 131072 + .space PAGE_SIZE /* Smaller than it should be since it's temp. */ GLOBAL(topstack) /* * Dummy interrupt table to keep sysctl happy until @@ -90,6 +91,11 @@ jal platform_start nop + ld sp, kstack0 + daddiu sp, KSTACK_PAGES << PAGE_SHIFT + dsrl sp, 3 + dsll sp, 3 + /* Start MI things rolling. */ jal mi_startup nop ==== //depot/projects/mips/sys/mips/mips/machdep.c#40 (text+ko) ==== @@ -198,7 +198,6 @@ struct kva_md_info kmi; vm_offset_t kstack0; -vm_paddr_t kstack0_phys; vm_size_t physsz; ==== //depot/projects/mips/sys/mips/mips/pmap.c#31 (text+ko) ==== @@ -270,6 +270,11 @@ msgbufinit(msgbufp, MSGBUF_SIZE); /* + * Steal thread0 kstack. + */ + kstack0 = pmap_steal_memory(KSTACK_PAGES << PAGE_SHIFT); + + /* * Initialise TLB management, and have it allocate page tables. */ tlb_bootstrap(physsz >> PAGE_SHIFT, pmap_steal_memory);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403120424.i2C4O5XI036945>