3 * Taken from the m68knommu.
5 * Copyright (C) 2004, Microtronix Datacom Ltd.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
17 * NON INFRINGEMENT. See the GNU General Public License for more
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef __NIOS2NOMMU_MMU_CONTEXT_H
27 #define __NIOS2NOMMU_MMU_CONTEXT_H
29 #include <asm/setup.h>
31 #include <asm/pgalloc.h>
33 static inline void enter_lazy_tlb(struct mm_struct
*mm
, struct task_struct
*tsk
)
38 init_new_context(struct task_struct
*tsk
, struct mm_struct
*mm
)
40 // mm->context = virt_to_phys(mm->pgd);
44 #define destroy_context(mm) do { } while(0)
46 static inline void switch_mm(struct mm_struct
*prev
, struct mm_struct
*next
, struct task_struct
*tsk
)
50 #define deactivate_mm(tsk,mm) do { } while (0)
52 extern inline void activate_mm(struct mm_struct
*prev_mm
,
53 struct mm_struct
*next_mm
)