Home
last modified time | relevance | path

Searched refs:base_pud (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/arch/riscv/mm/
Dkasan_init.c102 pud_t *pudp, *base_pud; in kasan_populate_pud() local
113 base_pud = pt_ops.get_pud_virt(pfn_to_phys(_pgd_pfn(*pgd))); in kasan_populate_pud()
115 base_pud = memblock_alloc(PTRS_PER_PUD * sizeof(pud_t), PAGE_SIZE); in kasan_populate_pud()
116 memcpy(base_pud, (void *)kasan_early_shadow_pud, in kasan_populate_pud()
119 base_pud = (pud_t *)pgd_page_vaddr(*pgd); in kasan_populate_pud()
120 if (base_pud == lm_alias(kasan_early_shadow_pud)) { in kasan_populate_pud()
121 base_pud = memblock_alloc(PTRS_PER_PUD * sizeof(pud_t), PAGE_SIZE); in kasan_populate_pud()
122 memcpy(base_pud, (void *)kasan_early_shadow_pud, in kasan_populate_pud()
127 pudp = base_pud + pud_index(vaddr); in kasan_populate_pud()
156 set_pgd(pgd, pfn_pgd(PFN_DOWN(__pa(base_pud)), PAGE_TABLE)); in kasan_populate_pud()
[all …]