Account for the Linux 3.17 increase of the ARM64 MAX_PHYSMEM_BITS

definition from 40 to 48.
(Johan.Erlandsson.sonymobile.com)
This commit is contained in:
Dave Anderson 2016-04-27 10:03:19 -04:00
parent fd2f8ef41e
commit 956e309ff1
2 changed files with 5 additions and 1 deletions

View File

@ -267,7 +267,10 @@ arm64_init(int when)
case POST_GDB:
arm64_calc_virtual_memory_ranges();
machdep->section_size_bits = _SECTION_SIZE_BITS;
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
if (THIS_KERNEL_VERSION >= LINUX(3,17,0))
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_3_17;
else
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
ms = machdep->machspec;
if (THIS_KERNEL_VERSION >= LINUX(4,0,0)) {

1
defs.h
View File

@ -2965,6 +2965,7 @@ typedef signed int s32;
#define _SECTION_SIZE_BITS 30
#define _MAX_PHYSMEM_BITS 40
#define _MAX_PHYSMEM_BITS_3_17 48
typedef unsigned long long __u64;
typedef unsigned long long u64;