PERFORCE change 48756 for review
Juli Mallett
jmallett at FreeBSD.org
Thu Mar 11 20:24:07 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=48756
Change 48756 by jmallett at 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);
More information about the p4-projects
mailing list