From 3049622c5d396be4fa7ad1da3b75fb0b18a6e30d Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 11:52:33 +0000 Subject: Apply patch github_1c45cea02df7.patch patch_name: github_1c45cea02df7.patch present_in_specfile: true --- diff --git a/arm64.c b/arm64.c index 7662d71..49e2573 100644 --- a/arm64.c +++ b/arm64.c @@ -3873,7 +3873,7 @@ arm64_calc_VA_BITS(void) } else if (ACTIVE()) error(FATAL, "cannot determine VA_BITS_ACTUAL: please use /proc/kcore\n"); else { - if ((string = pc->read_vmcoreinfo("NUMBER(tcr_el1_t1sz)"))) { + if ((string = pc->read_vmcoreinfo("NUMBER(TCR_EL1_T1SZ)"))) { /* See ARMv8 ARM for the description of * TCR_EL1.T1SZ and how it can be used * to calculate the vabits_actual diff --git a/netdump.c b/netdump.c index 406416a..0054d6a 100644 --- a/netdump.c +++ b/netdump.c @@ -1887,7 +1887,7 @@ vmcoreinfo_read_string(const char *key) sprintf(value, "%ld", nd->arch_data2 & 0xffffffff); return value; } - if (STREQ(key, "NUMBER(tcr_el1_t1sz)") && nd->arch_data2) { + if (STREQ(key, "NUMBER(TCR_EL1_T1SZ)") && nd->arch_data2) { value = calloc(VADDR_PRLEN+1, sizeof(char)); sprintf(value, "%lld", ((ulonglong)nd->arch_data2 >> 32) & 0xffffffff); pc->read_vmcoreinfo = no_vmcoreinfo;