Lines Matching defs:context
57 context. 0xffffffff is a marker for kernel context */
62 /* has this context been mmdrop'd? */
204 /* erase the mappings for a dead context. Uses the pg_dir for hints
208 context for when they're cleared */
209 void clear_context(unsigned long context)
214 if(context) {
215 if(!ctx_alloc[context])
216 panic("clear_context: context not allocated\n");
218 ctx_alloc[context]->context = SUN3_INVALID_CONTEXT;
219 ctx_alloc[context] = (struct mm_struct *)0;
225 sun3_put_context(context);
228 if((pmeg_ctx[i] == context) && (pmeg_alloc[i] == 1)) {
239 /* gets an empty context. if full, kills the next context listed to
241 /* This context invalidation scheme is, well, totally arbitrary, I'm
251 /* kill someone to get our context */
266 panic("get_free_context: failed to find free context");
277 * `context'. Maintain internal PMEG management structures. This doesn't
283 inline void mmu_emu_map_pmeg (int context, int vaddr)
297 pr_info("mmu_emu_map_pmeg: pmeg %x to context %d vaddr %x\n",
298 curr_pmeg, context, vaddr);
305 sun3_put_context(context);
318 sun3_put_context(context);
325 pmeg_ctx[curr_pmeg] = context;
358 unsigned char context;
364 context = 0;
366 context = current->mm->context;
402 mmu_emu_map_pmeg (context, vaddr);