Lines Matching refs:context
23 mm->context.space_id = alloc_sid();
31 free_sid(mm->context.space_id);
32 mm->context.space_id = 0;
35 static inline unsigned long __space_to_prot(mm_context_t context)
38 return context.space_id << 1;
40 return context.space_id >> (SPACEID_SHIFT - 1);
44 static inline void load_context(mm_context_t context)
46 mtsp(context.space_id, SR_USER);
47 mtctl(__space_to_prot(context), 8);
61 load_context(next->context);
92 if (next->context.space_id == 0)
93 next->context.space_id = alloc_sid();