7f298fc2d39f64807cd2c840931d834b3d53f828
[openwrt/openwrt.git] / target / linux / generic / pending-4.9 / 307-mips_highmem_offset.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: kernel: adjust mips highmem offset to avoid the need for -mlong-calls on systems with >256M RAM
3
4 Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 ---
6 arch/mips/include/asm/mach-generic/spaces.h | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/arch/mips/include/asm/mach-generic/spaces.h b/arch/mips/include/asm/mach-generic/spaces.h
10 index 952b0fdfda0e..fbb4e4cd4537 100644
11 --- a/arch/mips/include/asm/mach-generic/spaces.h
12 +++ b/arch/mips/include/asm/mach-generic/spaces.h
13 @@ -46,7 +46,7 @@
14 * Memory above this physical address will be considered highmem.
15 */
16 #ifndef HIGHMEM_START
17 -#define HIGHMEM_START _AC(0x20000000, UL)
18 +#define HIGHMEM_START _AC(0x10000000, UL)
19 #endif
20
21 #endif /* CONFIG_32BIT */
22 --
23 2.11.0
24