[Crash-utility] [PATCH] arm64: support MAX_PHYSMEM_BITS=48

Erlandsson, Johan Johan.Erlandsson at sonymobile.com
Wed Apr 27 09:20:02 UTC 2016


Hi,

This match update made in file 'arch/arm64/include/asm/sparsemem.h'.

commit 07a15dd55a3d65f81b4b09eab293f4afc720b082
arm64: mm: update max pa bits to 48
---
 arm64.c | 5 ++++-
 defs.h  | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arm64.c b/arm64.c
index d1c9c3e..34c8c59 100644
--- a/arm64.c
+++ b/arm64.c
@@ -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)) {
diff --git a/defs.h b/defs.h
index a1746cc..a09fa9a 100644
--- a/defs.h
+++ b/defs.h
@@ -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;
-- 
2.4.2




More information about the Crash-utility mailing list