307-mips_highmem_offset.patch 582 B

1234567891011121314151617
  1. Adjust highmem offset to 0x10000000 to ensure that all kmalloc allocations
  2. stay within the same 256M boundary. This ensures that -mlong-calls is not
  3. needed on systems with more than 256M RAM.
  4. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  5. ---
  6. --- a/arch/mips/include/asm/mach-generic/spaces.h
  7. +++ b/arch/mips/include/asm/mach-generic/spaces.h
  8. @@ -44,7 +44,7 @@
  9. * Memory above this physical address will be considered highmem.
  10. */
  11. #ifndef HIGHMEM_START
  12. -#define HIGHMEM_START _AC(0x20000000, UL)
  13. +#define HIGHMEM_START _AC(0x10000000, UL)
  14. #endif
  15. #endif /* CONFIG_32BIT */