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
32 * map with a copy of the kernel's persistent map.
36 mm->context.generation = kmap_generation;
39 mm->context.ptbase = __pa(pgd);
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;
74 current->active_mm->context.generation = kmap_generation;
80 * Now the "slave" copy of the current thread.
83 pmdindex = (pgd_t *)pmd - mm->pgd;
84 ppmd = (pmd_t *)current->active_mm->pgd + pmdindex;