12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef _ASM_NIOS2_MMU_CONTEXT_H
- #define _ASM_NIOS2_MMU_CONTEXT_H
- #include <asm-generic/mm_hooks.h>
- extern void mmu_context_init(void);
- extern unsigned long get_pid_from_context(mm_context_t *ctx);
- extern pgd_t *pgd_current;
- static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
- {
- }
- static inline int init_new_context(struct task_struct *tsk,
- struct mm_struct *mm)
- {
- mm->context = 0;
- return 0;
- }
- static inline void destroy_context(struct mm_struct *mm)
- {
- }
- void switch_mm(struct mm_struct *prev, struct mm_struct *next,
- struct task_struct *tsk);
- static inline void deactivate_mm(struct task_struct *tsk,
- struct mm_struct *mm)
- {
- }
- void activate_mm(struct mm_struct *prev, struct mm_struct *next);
- #endif
|