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