2 * arch/ubicom32/include/asm/mmu_context.h
3 * MMU context definitions for Ubicom32 architecture.
5 * (C) Copyright 2009, Ubicom, Inc.
6 * Copyright (C) 2004, Microtronix Datacom Ltd., All rights reserved.
8 * This file is part of the Ubicom32 Linux Kernel Port.
10 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
11 * it and/or modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation, either version 2 of the
13 * License, or (at your option) any later version.
15 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
16 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
17 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
18 * the GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with the Ubicom32 Linux Kernel Port. If not,
22 * see <http://www.gnu.org/licenses/>.
24 * Ubicom32 implementation derived from (with many thanks):
30 #ifndef _ASM_UBICOM32_MMU_CONTEXT_H
31 #define _ASM_UBICOM32_MMU_CONTEXT_H
33 #include <asm/setup.h>
35 #include <asm/pgalloc.h>
37 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
42 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
44 // mm->context = virt_to_phys(mm->pgd);
48 #define destroy_context(mm) do { } while(0)
50 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk)
54 #define deactivate_mm(tsk,mm) do { } while (0)
56 extern inline void activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm)
60 #endif /* _ASM_UBICOM32_MMU_CONTEXT_H */