mmu.h 612 字节
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 14 15
	/* 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;
16
} mm_context_t;
L
Linus Torvalds 已提交
17

18 19 20 21
#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 已提交
22
#endif