Root/target/linux/ubicom32/files/arch/ubicom32/include/asm/mmu_context.h

1/*
2 * arch/ubicom32/include/asm/mmu_context.h
3 * MMU context definitions for Ubicom32 architecture.
4 *
5 * (C) Copyright 2009, Ubicom, Inc.
6 * Copyright (C) 2004, Microtronix Datacom Ltd., All rights reserved.
7 *
8 * This file is part of the Ubicom32 Linux Kernel Port.
9 *
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.
14 *
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.
19 *
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/>.
23 *
24 * Ubicom32 implementation derived from (with many thanks):
25 * arch/m68knommu
26 * arch/blackfin
27 * arch/parisc
28 */
29
30#ifndef _ASM_UBICOM32_MMU_CONTEXT_H
31#define _ASM_UBICOM32_MMU_CONTEXT_H
32
33#include <asm/setup.h>
34#include <asm/page.h>
35#include <asm/pgalloc.h>
36
37static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
38{
39}
40
41extern inline int
42init_new_context(struct task_struct *tsk, struct mm_struct *mm)
43{
44    // mm->context = virt_to_phys(mm->pgd);
45    return(0);
46}
47
48#define destroy_context(mm) do { } while(0)
49
50static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk)
51{
52}
53
54#define deactivate_mm(tsk,mm) do { } while (0)
55
56extern inline void activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm)
57{
58}
59
60#endif /* _ASM_UBICOM32_MMU_CONTEXT_H */
61

Archive Download this file



interactive