Date: Fri, 24 Sep 2010 14:29:25 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 184145 for review Message-ID: <201009241429.o8OETPhQ056758@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@184145?ac=10 Change 184145 by jhb@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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009241429.o8OETPhQ056758>