Skip to content

Commit

Permalink
Account for the Linux 3.17 increase of the ARM64 MAX_PHYSMEM_BITS
Browse files Browse the repository at this point in the history
definition from 40 to 48.
(Johan.Erlandsson.sonymobile.com)
  • Loading branch information
Dave Anderson committed Apr 27, 2016
1 parent fd2f8ef commit 956e309
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
1 change: 1 addition & 0 deletions defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 956e309

Please sign in to comment.