Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 23:22:54 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 30076 for review
Message-ID:  <200304300622.h3U6Mson084772@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=30076

Change 30076 by jmallett@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.



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