summaryrefslogtreecommitdiff
path: root/include/asm-arm/mmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/mmu.h')
-rw-r--r--include/asm-arm/mmu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-arm/mmu.h b/include/asm-arm/mmu.h
new file mode 100644
index 000000000000..a457cb71984f
--- /dev/null
+++ b/include/asm-arm/mmu.h
@@ -0,0 +1,16 @@
+#ifndef __ARM_MMU_H
+#define __ARM_MMU_H
+
+typedef struct {
+#if __LINUX_ARM_ARCH__ >= 6
+ unsigned int id;
+#endif
+} mm_context_t;
+
+#if __LINUX_ARM_ARCH__ >= 6
+#define ASID(mm) ((mm)->context.id & 255)
+#else
+#define ASID(mm) (0)
+#endif
+
+#endif