PERFORCE change 30076 for review
Juli Mallett
jmallett at FreeBSD.org
Tue Apr 29 23:22:56 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30076
Change 30076 by jmallett at jmallett_dalek on 2003/04/29 23:22:33
Never underestimate the power of letting one's girlfriend
review your code... For the kernel stack for thread 0,
keep the physical and the meta-physical addresses for a
reason, the non-physical should be a usable address.
Affected files ...
.. //depot/projects/mips/sys/mips/mips/pmap.c#10 edit
Differences ...
==== //depot/projects/mips/sys/mips/mips/pmap.c#10 (text+ko) ====
@@ -328,13 +328,13 @@
int i;
kptemapsize = PAGE_SIZE; /* XXX placeholder */
- kptemap = pmap_bootstrap_alloc(sizeof *kptemap * kptemapsize);
+ kptemap = pmap_steal_memory(sizeof *kptemap * kptemapsize);
/*
* Allocate a kernel stack for thread0.
*/
kstack0_phys = pmap_bootstrap_alloc(KSTACK_PAGES * PAGE_SIZE);
- kstack0 = kstack0_phys;
+ kstack0 = MIPS_PHYS_TO_KSEG0(kstack0_phys);
/*
* Calculate the first and last available physical addresses.
More information about the p4-projects
mailing list