Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef __ARM_MMU_H |
2 | #define __ARM_MMU_H | |
3 | ||
002547b4 RK |
4 | #ifdef CONFIG_MMU |
5 | ||
1da177e4 | 6 | typedef struct { |
516793c6 | 7 | #ifdef CONFIG_CPU_HAS_ASID |
1da177e4 LT |
8 | unsigned int id; |
9 | #endif | |
ff0daca5 | 10 | unsigned int kvm_seq; |
1da177e4 LT |
11 | } mm_context_t; |
12 | ||
516793c6 | 13 | #ifdef CONFIG_CPU_HAS_ASID |
1da177e4 LT |
14 | #define ASID(mm) ((mm)->context.id & 255) |
15 | #else | |
16 | #define ASID(mm) (0) | |
17 | #endif | |
18 | ||
002547b4 RK |
19 | #else |
20 | ||
21 | /* | |
22 | * From nommu.h: | |
23 | * Copyright (C) 2002, David McCullough <davidm@snapgear.com> | |
24 | * modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com> | |
25 | */ | |
26 | typedef struct { | |
002547b4 RK |
27 | unsigned long end_brk; |
28 | } mm_context_t; | |
29 | ||
30 | #endif | |
31 | ||
1da177e4 | 32 | #endif |