mmu.h 612 B

12345678910111213141516171819202122
  1. #ifndef __MMU_H
  2. #define __MMU_H
  3. typedef struct {
  4. atomic_t attach_count;
  5. unsigned int flush_mm;
  6. spinlock_t list_lock;
  7. struct list_head pgtable_list;
  8. unsigned long asce_bits;
  9. unsigned long asce_limit;
  10. unsigned long vdso_base;
  11. /* Cloned contexts will be created with extended page tables. */
  12. unsigned int alloc_pgste:1;
  13. /* The mmu context has extended page tables. */
  14. unsigned int has_pgste:1;
  15. } mm_context_t;
  16. #define INIT_MM_CONTEXT(name) \
  17. .context.list_lock = __SPIN_LOCK_UNLOCKED(name.context.list_lock), \
  18. .context.pgtable_list = LIST_HEAD_INIT(name.context.pgtable_list),
  19. #endif