Lines Matching +full:current +full:- +full:rotate
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
4 * Copyright (C) 2008-2009 PetaLogix
17 #include <asm-generic/mm_hooks.h>
23 * of the 32-bit virtual address (the "effective segment ID") in order
30 MicroBlaze has 256 contexts, so we can just rotate through these
41 * Set the current MMU context.
81 if (mm->context != NO_CONTEXT) in get_mmu_context()
92 mm->context = ctx; in get_mmu_context()
99 # define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0)
107 if (mm->context != NO_CONTEXT) { in destroy_context()
108 clear_bit(mm->context, context_map); in destroy_context()
109 mm->context = NO_CONTEXT; in destroy_context()
117 tsk->thread.pgdir = next->pgd; in switch_mm()
119 set_context(next->context, next->pgd); in switch_mm()
123 * After we have set current->mm to a new value, this activates
130 current->thread.pgdir = mm->pgd; in activate_mm()
132 set_context(mm->context, mm->pgd); in activate_mm()
137 #include <asm-generic/mmu_context.h>