Skip to content
Snippets Groups Projects
Commit 7f7bc20b authored by Andreas Oetken's avatar Andreas Oetken Committed by Ley Foon Tan
Browse files

nios2: Don't use _end for calculating min_low_pfn


If there is a initramfs linked into the kernel which will be
freed later on there is free memory somewhere between _etext
and _end, thus using _end for min_low_pfn is not correct.
This may lead to issues in dma_capable when checking
'min(addr, end) < phys_to_dma(dev, PFN_PHYS(min_low_pfn)))'
as the address addr might be below min_low_pfn. Picked
find_limits from architecture arm for applying min_low_pfn and
max_low_pfn. Maybe using _etext for min_low_pfn would be
fine too.

Signed-off-by: default avatarAndreas Oetken <andreas.oetken@siemens.com>
Signed-off-by: default avatarLey Foon Tan <ley.foon.tan@intel.com>
parent 9abcfcb2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment