MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / mmu_context.h
blob795cd093ebbb6a4ddad7d0221e364fdc79c5e76a
1 /*
3 * Taken from the m68knommu.
5 * Copyright (C) 2004, Microtronix Datacom Ltd.
7 * All rights reserved.
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
18 * details.
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>
30 #include <asm/page.h>
31 #include <asm/pgalloc.h>
33 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
37 extern inline int
38 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
40 // mm->context = virt_to_phys(mm->pgd);
41 return(0);
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)
57 #endif