Merge branch 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[deliverable/linux.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
8a4e3a9e 8 atomic64_t id;
bdae73cd
CM
9#else
10 int switch_pending;
1da177e4 11#endif
8a4e3a9e 12 unsigned int vmalloc_seq;
48be69a0 13 unsigned long sigpage;
1713ce7c
NL
14#ifdef CONFIG_VDSO
15 unsigned long vdso;
16#endif
1da177e4
LT
17} mm_context_t;
18
516793c6 19#ifdef CONFIG_CPU_HAS_ASID
b5466f87
WD
20#define ASID_BITS 8
21#define ASID_MASK ((~0ULL) << ASID_BITS)
a1af3474 22#define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
1da177e4
LT
23#else
24#define ASID(mm) (0)
25#endif
26
002547b4
RK
27#else
28
29/*
30 * From nommu.h:
31 * Copyright (C) 2002, David McCullough <davidm@snapgear.com>
32 * modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
33 */
34typedef struct {
8a4e3a9e 35 unsigned long end_brk;
002547b4
RK
36} mm_context_t;
37
38#endif
39
1da177e4 40#endif
This page took 0.792106 seconds and 5 git commands to generate.