PowerISA v3.0 CPUs expect _PAGE_PRESENT to be at 0x8000_0000_0000_0000 instead of 0x2 in radix mode. This is accomodated by changing the flag _PAGE_PRESENT for 64-bit POWER server processors with kernel commit 849f86a6. This patch makes the corresponding change here. Signed-off-by: Hari Bathini <hbathini at linux.vnet.ibm.com> --- makedumpfile.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makedumpfile.h b/makedumpfile.h index e45ad09..7f9dfb1 100644 --- a/makedumpfile.h +++ b/makedumpfile.h @@ -660,7 +660,10 @@ int get_va_bits_arm64(void); ((vaddr >> (info->l2_shift)) & (info->ptrs_per_l2 - 1)) #define _PAGE_PRESENT \ - (info->kernel_version >= KERNEL_VERSION(4, 5, 0) ? 0x2UL : 0x1UL) + (info->kernel_version >= KERNEL_VERSION(4, 6, 0) ? \ + (0x1UL << 63) : (info->kernel_version >= KERNEL_VERSION(4, 5, 0) ? \ + 0x2UL : 0x1UL)) + #endif #ifdef __powerpc32__