linux/arch/nios2
Andreas Oetken 7f7bc20bc4 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: Andreas Oetken <andreas.oetken@siemens.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
2021-02-19 15:02:09 +08:00
..
boot nios2 update for v5.7-rc1 2020-04-11 11:38:44 -07:00
configs sysctl: Remove the sysctl system call 2019-11-26 13:03:56 -06:00
include tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
kernel nios2: Don't use _end for calculating min_low_pfn 2021-02-19 15:02:09 +08:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mm mm/nios2: use general page fault accounting 2020-08-12 10:58:03 -07:00
platform arch: nios2: Enable the common clk subsystem on Nios2 2020-04-11 01:45:28 +08:00
Kconfig timekeeping: default GENERIC_CLOCKEVENTS to enabled 2020-10-30 21:57:07 +01:00
Kconfig.debug nios2: remove pointless second entry for CONFIG_TRACE_IRQFLAGS_SUPPORT 2019-07-04 11:32:09 +08:00
Makefile kbuild: consolidate Devicetree dtb build rules 2018-10-02 09:23:21 -05:00