Lines Matching defs:context
26 mm->context = alloc_sid();
33 free_sid(mm->context);
34 mm->context = 0;
37 static inline unsigned long __space_to_prot(mm_context_t context)
40 return context << 1;
42 return context >> (SPACEID_SHIFT - 1);
46 static inline void load_context(mm_context_t context)
48 mtsp(context, 3);
49 mtctl(__space_to_prot(context), 8);
57 load_context(next->context);
75 if (next->context == 0)
76 next->context = alloc_sid();