/* * Note: accesses outside of the kernel image and the identity map area * are not supported on any CPU using the idmap tables as its current * page tables.
*/
pgd_t *idmap_pgd __ro_after_init; longlong arch_phys_to_idmap_offset __ro_after_init;
/* Flush L1 for the hardware to see this page table content */ if (!(elf_hwcap & HWCAP_LPAE))
flush_cache_louis();
return 0;
}
early_initcall(init_static_idmap);
/* * In order to soft-boot, we need to switch to a 1:1 mapping for the * cpu_reset functions. This will then ensure that we have predictable * results when turning off the mmu.
*/ void setup_mm_for_reboot(void)
{ /* Switch to the identity mapping. */
cpu_switch_mm(idmap_pgd, &init_mm);
local_flush_bp_all();
#ifdef CONFIG_CPU_HAS_ASID /* * We don't have a clean ASID for the identity mapping, which * may clash with virtual addresses of the previous page tables * and therefore potentially in the TLB.
*/
local_flush_tlb_all(); #endif
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.