--- zzzz-none-000/linux-5.4.213/arch/arm/mm/init.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/arch/arm/mm/init.c 2024-08-14 09:01:28.000000000 +0000 @@ -704,10 +704,17 @@ static inline void fix_kernmem_perms(void) { } #endif /* CONFIG_STRICT_KERNEL_RWX */ +#if defined(CONFIG_AVM_ENHANCED) +void __init avm_mtd_cleanup(void); +#endif void free_initmem(void) { fix_kernmem_perms(); +#if defined(CONFIG_AVM_ENHANCED) + avm_mtd_cleanup(); +#endif + poison_init_mem(__init_begin, __init_end - __init_begin); if (!machine_is_integrator() && !machine_is_cintegrator()) free_initmem_default(-1); @@ -725,3 +732,11 @@ free_reserved_area((void *)start, (void *)end, -1, "initrd"); } #endif + +#ifdef CONFIG_QCA_MINIDUMP +void minidump_get_pgd_info(uint64_t *pt_start, uint64_t *pt_len) +{ + *pt_start = (uintptr_t)swapper_pg_dir; + *pt_len = SZ_16K; +} +#endif /* CONFIG_QCA_MINIDUMP */