| #ifndef __ASM_SH_MMU_CONTEXT_32_H |
| #define __ASM_SH_MMU_CONTEXT_32_H |
| * Destroy context related info for an mm_struct that is about |
| static inline void destroy_context(struct mm_struct *mm) |
| static inline void set_asid(unsigned long asid) |
| __asm__ __volatile__ ("mov.l %2, %0\n\t" |
| : "r" (asid), "m" (__m(MMU_PTEH)), |
| static inline unsigned long get_asid(void) |
| __asm__ __volatile__ ("mov.l %1, %0" |
| asid &= MMU_CONTEXT_ASID_MASK; |
| /* MMU_TTB is used for optimizing the fault handling. */ |
| static inline void set_TTB(pgd_t *pgd) |
| ctrl_outl((unsigned long)pgd, MMU_TTB); |
| static inline pgd_t *get_TTB(void) |
| return (pgd_t *)ctrl_inl(MMU_TTB); |
| #endif /* __ASM_SH_MMU_CONTEXT_32_H */ |