Lines Matching defs:context
36 if (mm->context != NO_CONTEXT)
49 mm->context = ctx;
54 * Set up the context for a new address space.
56 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0)
59 * We're finished using the context for an address space.
63 if (mm->context != NO_CONTEXT) {
64 clear_bit(mm->context, context_map);
65 mm->context = NO_CONTEXT;
70 static inline void set_context(mm_context_t context, pgd_t *pgd)
72 __asm__ __volatile__ ("movec %0,%%asid" : : "d" (context));
79 set_context(tsk->mm->context, next->pgd);
84 * the context for the new mm so we see the new mappings.
90 set_context(mm->context, mm->pgd);
150 asid = mm->context & 0xff;
176 extern void clear_context(unsigned long context);
178 /* set the context for a new task to unmapped */
182 mm->context = SUN3_INVALID_CONTEXT;
186 /* find the context given to this process, and if it hasn't already
190 if (mm->context == SUN3_INVALID_CONTEXT)
191 mm->context = get_free_context(mm);
194 /* flush context if allocated... */
197 if (mm->context != SUN3_INVALID_CONTEXT)
198 clear_context(mm->context);
204 sun3_put_context(mm->context);
230 mm->context = virt_to_phys(mm->pgd);
239 0x80000000 | _PAGE_TABLE, mm->context
277 asm volatile ("movec %0,%%urp" : : "r" (mm->context));
308 next_mm->context = virt_to_phys(next_mm->pgd);