Messages in this thread | | | Date | Wed, 29 Aug 2012 14:02:40 -0700 | Subject | Re: [PATCH 5/6] x86: Fixup code testing if a pfn is direct mapped | From | Yinghai Lu <> |
| |
On Wed, Aug 29, 2012 at 12:04 PM, Jacob Shin <jacob.shin@amd.com> wrote: > Update code that previously assumed pfns [ 0 - max_low_pfn_mapped ) and > [ 4GB - max_pfn_mapped ) were always direct mapped, to now look up > pfn_mapped ranges instead.
please swap patch 5 and patch 4 applying sequence.
aka. should have [PATCH 4/6] x86:Fixup code testing if a pfn is direct mapped and it should have dummy function
bool pfn_range_is_mapped(u64 start_pfn, u64 end_pfn) { return end_pfn <= max_low_pfn_mapped || (end_pfn > (1UL << (32 - PAGE_SHIFT)) && end_pfn <= max_pfn_mapped); }
and
[PATCH 5/6] x86: Only direct map addresses that are marked as E820_RAM will update pfn_range_is_mapped accordingly.
Thanks
Yinghai
| |