2005-04-16 22:20:36 +00:00
|
|
|
#ifndef __MMU_H
|
|
|
|
#define __MMU_H
|
|
|
|
|
2008-02-09 17:24:35 +00:00
|
|
|
typedef struct {
|
2010-08-24 07:26:21 +00:00
|
|
|
atomic_t attach_count;
|
|
|
|
unsigned int flush_mm;
|
2009-09-11 08:28:57 +00:00
|
|
|
spinlock_t list_lock;
|
2008-02-09 17:24:35 +00:00
|
|
|
struct list_head crst_list;
|
|
|
|
struct list_head pgtable_list;
|
|
|
|
unsigned long asce_bits;
|
2008-02-09 17:24:37 +00:00
|
|
|
unsigned long asce_limit;
|
2008-12-25 12:38:36 +00:00
|
|
|
unsigned long vdso_base;
|
2008-02-09 17:24:35 +00:00
|
|
|
int noexec;
|
2008-10-28 10:10:15 +00:00
|
|
|
int has_pgste; /* The mmu context has extended page tables */
|
|
|
|
int alloc_pgste; /* cloned contexts will have extended page tables */
|
2008-02-09 17:24:35 +00:00
|
|
|
} mm_context_t;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2010-08-10 00:18:28 +00:00
|
|
|
#define INIT_MM_CONTEXT(name) \
|
|
|
|
.context.list_lock = __SPIN_LOCK_UNLOCKED(name.context.list_lock), \
|
|
|
|
.context.crst_list = LIST_HEAD_INIT(name.context.crst_list), \
|
|
|
|
.context.pgtable_list = LIST_HEAD_INIT(name.context.pgtable_list),
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|