Messages in this thread | | | Date | Sat, 28 Jun 2008 00:01:06 -0700 | From | "Yinghai Lu" <> | Subject | Re: [PATCH] x86: fix init_memory_mapping over boundary v2 |
| |
On Fri, Jun 27, 2008 at 11:35 PM, Ingo Molnar <mingo@elte.hu> wrote: > > * Yinghai Lu <yhlu.kernel@gmail.com> wrote: > >> some end boundary is only page alignment, instead of 2M alignment, so >> call ker_phycial_mapping_init three times. then don't overmap above >> the max_low_pfn > > applied to tip/x86/unify-setup, thanks Yinghai. > >> v2: make init_memory_mapping more solid: start could be any value >> other than 0 > > very good idea!
could change map_pfn_mapped = init_memory_mapping(0, map_low_pfn<<PAGE_SHIFT); to map_pfn_mapped = init_memory_mapping(map_pfn_mapped<<PAGE_SHIFT, map_low_pfn<<PAGE_SHIFT);
only concern is init_memory_mapping set _EXEC in page table for kernel code.
YH
| |