Merge branch 'topic/hda' into for-linus
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / include / asm / mmu.h
CommitLineData
1da177e4
LT
1#ifndef __ARM_MMU_H
2#define __ARM_MMU_H
3
002547b4
RK
4#ifdef CONFIG_MMU
5
1da177e4 6typedef struct {
516793c6 7#ifdef CONFIG_CPU_HAS_ASID
1da177e4 8 unsigned int id;
11805bcf 9 spinlock_t id_lock;
1da177e4 10#endif
ff0daca5 11 unsigned int kvm_seq;
1da177e4
LT
12} mm_context_t;
13
516793c6 14#ifdef CONFIG_CPU_HAS_ASID
1da177e4 15#define ASID(mm) ((mm)->context.id & 255)
28c22d7d
MH
16
17/* init_mm.context.id_lock should be initialized. */
18#define INIT_MM_CONTEXT(name) \
19 .context.id_lock = __SPIN_LOCK_UNLOCKED(name.context.id_lock),
1da177e4
LT
20#else
21#define ASID(mm) (0)
22#endif
23
002547b4
RK
24#else
25
26/*
27 * From nommu.h:
28 * Copyright (C) 2002, David McCullough <davidm@snapgear.com>
29 * modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
30 */
31typedef struct {
002547b4
RK
32 unsigned long end_brk;
33} mm_context_t;
34
35#endif
36
1da177e4 37#endif