Thomas Bogendoerfer e0bf304e4a
MIPS: fix memory setup for platforms with PHYS_OFFSET != 0
For platforms, which use a PHYS_OFFSET != 0, symbol _end also
contains that offset. So when calling memblock_reserve() for
reserving kernel the size argument needs to be adjusted.

Fixes: bcec54bf3118 ("mips: switch to NO_BOOTMEM")
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # v4.20+
2019-02-27 18:49:29 -08:00
..
2018-12-03 13:42:38 -08:00
2017-02-13 18:57:34 +00:00
2017-11-03 09:02:30 -07:00
2018-10-31 08:54:16 -07:00
2017-01-03 16:34:34 +01:00
2019-02-07 11:55:24 -08:00
2016-05-09 12:00:02 +02:00
2018-10-31 08:54:16 -07:00
2018-06-24 09:26:01 -07:00
2018-08-31 11:49:20 -07:00
2017-11-15 11:36:08 -08:00
2014-05-24 00:07:01 +02:00
2018-10-31 08:54:16 -07:00
2018-12-03 13:42:38 -08:00