blob: 78522cdefdd42334c7b4f72be1180a6a2ed2f327 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __MMU_H
2#define __MMU_H
3
Martin Schwidefsky146e4b32008-02-09 18:24:35 +01004typedef struct {
Martin Schwidefsky050eef32010-08-24 09:26:21 +02005 atomic_t attach_count;
6 unsigned int flush_mm;
Martin Schwidefsky50aa98b2009-09-11 10:28:57 +02007 spinlock_t list_lock;
Martin Schwidefsky146e4b32008-02-09 18:24:35 +01008 struct list_head crst_list;
9 struct list_head pgtable_list;
10 unsigned long asce_bits;
Martin Schwidefsky6252d702008-02-09 18:24:37 +010011 unsigned long asce_limit;
Martin Schwidefskyb0206322008-12-25 13:38:36 +010012 unsigned long vdso_base;
Martin Schwidefsky146e4b32008-02-09 18:24:35 +010013 int noexec;
Christian Borntraeger250cf772008-10-28 11:10:15 +010014 int has_pgste; /* The mmu context has extended page tables */
15 int alloc_pgste; /* cloned contexts will have extended page tables */
Martin Schwidefsky146e4b32008-02-09 18:24:35 +010016} mm_context_t;
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Heiko Carstensa1b200e2010-08-09 17:18:28 -070018#define INIT_MM_CONTEXT(name) \
19 .context.list_lock = __SPIN_LOCK_UNLOCKED(name.context.list_lock), \
20 .context.crst_list = LIST_HEAD_INIT(name.context.crst_list), \
21 .context.pgtable_list = LIST_HEAD_INIT(name.context.pgtable_list),
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif