PERFORCE change 184145 for review
John Baldwin
jhb at FreeBSD.org
Fri Sep 24 14:29:25 UTC 2010
http://p4web.freebsd.org/@@184145?ac=10
Change 184145 by jhb at jhb_jhbbsd on 2010/09/24 14:28:21
Initialize physmap_idx before parsing the SMAP from the loader.
Affected files ...
.. //depot/projects/smpng/sys/i386/i386/machdep.c#159 edit
Differences ...
==== //depot/projects/smpng/sys/i386/i386/machdep.c#159 (text+ko) ====
@@ -2140,6 +2140,7 @@
* Check if the loader supplied an SMAP memory map. If so,
* use that and do not make any VM86 calls.
*/
+ physmap_idx = 0;
smapbase = NULL;
kmdp = preload_search_by_type("elf kernel");
if (kmdp == NULL)
@@ -2182,7 +2183,6 @@
* the kernel page table so we can use it as a buffer. The
* kernel will unmap this page later.
*/
- physmap_idx = 0;
pmap_kenter(KERNBASE + (1 << PAGE_SHIFT), 1 << PAGE_SHIFT);
vmc.npages = 0;
smap = (void *)vm86_addpage(&vmc, 1, KERNBASE + (1 << PAGE_SHIFT));
More information about the p4-projects
mailing list