16 lines
542 B
Diff
16 lines
542 B
Diff
--- crash-7.2.3/ppc64.c.orig
|
|
+++ crash-7.2.3/ppc64.c
|
|
@@ -583,8 +583,11 @@ ppc64_init(int when)
|
|
ppc64_vmemmap_init();
|
|
|
|
machdep->section_size_bits = _SECTION_SIZE_BITS;
|
|
+
|
|
+#define is_RHEL8() (strstr(kt->proc_version, ".el8."))
|
|
+
|
|
if ((machdep->flags & VMEMMAP) &&
|
|
- (THIS_KERNEL_VERSION >= LINUX(4,19,0)))
|
|
+ ((THIS_KERNEL_VERSION >= LINUX(4,19,0)) || is_RHEL8()))
|
|
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_4_19;
|
|
else if (THIS_KERNEL_VERSION >= LINUX(3,7,0))
|
|
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_3_7;
|