Skip to contentSkip to conversation

microblaze_mmu_v2: Context handling - mmu_context.c/h

PATCH New Michal Simek 1 participant 1 message May 27, 2009 Microblaze architecture

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

PATCH 1/1 microblaze_mmu_v2: Context handling - mmu_context.c/h

---
 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.c
arch/microblaze/include/asm/mmu_context.h +5 -21
dissimilarity index 100%
index 150ca01..385fed1 100644
@@ -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
similarity index 87%
rename from arch/microblaze/include/asm/mmu_context.h
rename to arch/microblaze/include/asm/mmu_context_no.h
index 150ca01..ba55671 100644
@@ -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