mirror of
https://github.com/crash-utility/crash
synced 2025-01-05 16:19:29 +00:00
Enabled the "crash --log vmcore" command line option on the ARM64
architecture. Without the patch, the option fails with the message "crash: crash --log not implemented on ARM64: TBD". (anderson@redhat.com)
This commit is contained in:
parent
2e84d38c93
commit
23939b2c44
14
arm64.c
14
arm64.c
@ -289,9 +289,9 @@ arm64_init(int when)
|
|||||||
|
|
||||||
case LOG_ONLY:
|
case LOG_ONLY:
|
||||||
machdep->machspec = &arm64_machine_specific;
|
machdep->machspec = &arm64_machine_specific;
|
||||||
error(FATAL, "crash --log not implemented on ARM64: TBD\n");
|
arm64_calc_VA_BITS();
|
||||||
/* machdep->identity_map_base = ARM64_PAGE_OFFSET; */
|
|
||||||
arm64_calc_phys_offset();
|
arm64_calc_phys_offset();
|
||||||
|
machdep->machspec->page_offset = ARM64_PAGE_OFFSET;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1910,6 +1910,7 @@ arm64_calc_VA_BITS(void)
|
|||||||
{
|
{
|
||||||
int bitval;
|
int bitval;
|
||||||
struct syment *sp;
|
struct syment *sp;
|
||||||
|
ulong value;
|
||||||
|
|
||||||
if (!(sp = symbol_search("swapper_pg_dir")) &&
|
if (!(sp = symbol_search("swapper_pg_dir")) &&
|
||||||
!(sp = symbol_search("idmap_pg_dir")) &&
|
!(sp = symbol_search("idmap_pg_dir")) &&
|
||||||
@ -1921,8 +1922,13 @@ arm64_calc_VA_BITS(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (bitval = highest_bit_long(sp->value); bitval; bitval--) {
|
if (sp)
|
||||||
if ((sp->value & (1UL << bitval)) == 0) {
|
value = sp->value;
|
||||||
|
else
|
||||||
|
value = kt->vmcoreinfo.log_buf_SYMBOL; /* crash --log */
|
||||||
|
|
||||||
|
for (bitval = highest_bit_long(value); bitval; bitval--) {
|
||||||
|
if ((value & (1UL << bitval)) == 0) {
|
||||||
machdep->machspec->VA_BITS = bitval + 2;
|
machdep->machspec->VA_BITS = bitval + 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user