[ARM] nommu: adjust headers for !MMU ARM systems
[linux-3.10.git] / include / asm-arm / mmu.h
1 #ifndef __ARM_MMU_H
2 #define __ARM_MMU_H
3
4 #ifdef CONFIG_MMU
5
6 typedef struct {
7 #if __LINUX_ARM_ARCH__ >= 6
8         unsigned int id;
9 #endif
10 } mm_context_t;
11
12 #if __LINUX_ARM_ARCH__ >= 6
13 #define ASID(mm)        ((mm)->context.id & 255)
14 #else
15 #define ASID(mm)        (0)
16 #endif
17
18 #else
19
20 /*
21  * From nommu.h:
22  *  Copyright (C) 2002, David McCullough <davidm@snapgear.com>
23  *  modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
24  */
25 typedef struct {
26         struct vm_list_struct   *vmlist;
27         unsigned long           end_brk;
28 } mm_context_t;
29
30 #endif
31
32 #endif