microblaze_mmu_v2: Context handling - mmu_context.c/h
Michal Simek
maintainerPATCH 1/1 microblaze_mmu_v2: Context handling - mmu_context.c/h
Signed-off-by Michal Simek <[email protected]>
---
arch/microblaze/include/asm/mmu_context.h | 26 +---
arch/microblaze/include/asm/mmu_context_mm.h | 140 ++++++++++++++++++++
.../asm/{mmu_context.h => mmu_context_no.h} | 2 +
arch/microblaze/mm/mmu_context.c | 70 ++++++++++
4 files changed, 217 insertions(+), 21 deletions(-)
rewrite arch/microblaze/include/asm/mmu_context.h (100%)
create mode 100644 arch/microblaze/include/asm/mmu_context_mm.h
rename arch/microblaze/include/asm/{mmu_context.h => mmu_context_no.h} (87%)
create mode 100644 arch/microblaze/mm/mmu_context.carch/microblaze/include/asm/mmu_context.h +5 -21
@@ -1,21 +1,5 @@ -/* -* Copyright (C) 2006 Atmark Techno, Inc. -* -* This file is subject to the terms and conditions of the GNU General Public -* License. See the file "COPYING" in the main directory of this archive -* for more details. -*/ - -#ifndef _ASM_MICROBLAZE_MMU_CONTEXT_H -#define _ASM_MICROBLAZE_MMU_CONTEXT_H - -# define init_new_context (tsk, mm) ({ 0; }) - -# define enter_lazy_tlb (mm, tsk) do {} while (0) -# define change_mm_context (old, ctx, _pml4) do {} while (0) -# define destroy_context (mm) do {} while (0) -# define deactivate_mm (tsk, mm) do {} while (0) -# define switch_mm (prev, next, tsk) do {} while (0) -# define activate_mm (prev, next) do {} while (0) - -#endif /* _ASM_MICROBLAZE_MMU_CONTEXT_H */ +#ifdef CONFIG_MMU +# include "mmu_context_mm.h" +#else +# include "mmu_context_no.h" +#endif
arch/microblaze/include/asm/mmu_context_mm.h new file +140 -0
140 lines not on this page · raw message
arch/microblaze/include/asm/mmu_context_no.h renamed from arch/microblaze/include/asm/mmu_context.h +2 -0
@@ -1,4 +1,6 @@/* +* Copyright (C) 2008-2009 Michal Simek <[email protected]> +* Copyright (C) 2008-2009 PetaLogix * Copyright (C) 2006 Atmark Techno, Inc. * * This file is subject to the terms and conditions of the GNU General Public
arch/microblaze/mm/mmu_context.c new file +70 -0
70 lines not on this page · raw message
Signature · 1 line
1.5.5.1