xref: /linux/arch/arm/include/asm/mmu.h (revision d39d0ed196aa1685bb24771e92f78633c66ac9cb)
1 #ifndef __ARM_MMU_H
2 #define __ARM_MMU_H
3 
4 #ifdef CONFIG_MMU
5 
6 typedef struct {
7 #ifdef CONFIG_CPU_HAS_ASID
8 	unsigned int id;
9 	spinlock_t id_lock;
10 #endif
11 	unsigned int kvm_seq;
12 } mm_context_t;
13 
14 #ifdef CONFIG_CPU_HAS_ASID
15 #define ASID(mm)	((mm)->context.id & 255)
16 #else
17 #define ASID(mm)	(0)
18 #endif
19 
20 #else
21 
22 /*
23  * From nommu.h:
24  *  Copyright (C) 2002, David McCullough <davidm@snapgear.com>
25  *  modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
26  */
27 typedef struct {
28 	unsigned long		end_brk;
29 } mm_context_t;
30 
31 #endif
32 
33 #endif
34