mmu.h 576 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef __MMU_H
#define __MMU_H

4
typedef struct {
5 6
	atomic_t attach_count;
	unsigned int flush_mm;
7
	spinlock_t list_lock;
8 9
	struct list_head pgtable_list;
	unsigned long asce_bits;
M
Martin Schwidefsky 已提交
10
	unsigned long asce_limit;
M
Martin Schwidefsky 已提交
11
	unsigned long vdso_base;
12 13
	int has_pgste;	 /* The mmu context has extended page tables */
	int alloc_pgste; /* cloned contexts will have extended page tables */
14
} mm_context_t;
L
Linus Torvalds 已提交
15

16 17 18 19
#define INIT_MM_CONTEXT(name)						      \
	.context.list_lock    = __SPIN_LOCK_UNLOCKED(name.context.list_lock), \
	.context.pgtable_list = LIST_HEAD_INIT(name.context.pgtable_list),

L
Linus Torvalds 已提交
20
#endif