Lines Matching +full:slave +full:- +full:kernel
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
11 #include <asm/mem-layout.h>
14 #include <asm-generic/pgalloc.h>
29 * that new address spaces always contain the kernel in pgd_alloc()
32 * map with a copy of the kernel's persistent map. in pgd_alloc()
36 mm->context.generation = kmap_generation; in pgd_alloc()
39 mm->context.ptbase = __pa(pgd); in pgd_alloc()
57 * share the same pmd's for their kernel mappings, but the v0.3
58 * Hexagon VM spec has a "monolithic" L1 table for user and kernel
59 * segments. We track "generations" of the kernel map to minimize
60 * overhead, and update the "slave" copies of the kernel mappings
62 * kernel map of the active thread who's calling pmd_populate_kernel...
73 mm->context.generation = kmap_generation; in pmd_populate_kernel()
74 current->active_mm->context.generation = kmap_generation; in pmd_populate_kernel()
80 * Now the "slave" copy of the current thread. in pmd_populate_kernel()
83 pmdindex = (pgd_t *)pmd - mm->pgd; in pmd_populate_kernel()
84 ppmd = (pmd_t *)current->active_mm->pgd + pmdindex; in pmd_populate_kernel()