1bb1f17b0SAlexey Dobriyan #include <linux/mm_types.h> 2bb1f17b0SAlexey Dobriyan #include <linux/rbtree.h> 3bb1f17b0SAlexey Dobriyan #include <linux/rwsem.h> 4bb1f17b0SAlexey Dobriyan #include <linux/spinlock.h> 5bb1f17b0SAlexey Dobriyan #include <linux/list.h> 6bb1f17b0SAlexey Dobriyan #include <linux/cpumask.h> 7bb1f17b0SAlexey Dobriyan 8*60063497SArun Sharma #include <linux/atomic.h> 9bb1f17b0SAlexey Dobriyan #include <asm/pgtable.h> 10a1b200e2SHeiko Carstens #include <asm/mmu.h> 11a1b200e2SHeiko Carstens 12a1b200e2SHeiko Carstens #ifndef INIT_MM_CONTEXT 13a1b200e2SHeiko Carstens #define INIT_MM_CONTEXT(name) 14a1b200e2SHeiko Carstens #endif 15bb1f17b0SAlexey Dobriyan 16bb1f17b0SAlexey Dobriyan struct mm_struct init_mm = { 17bb1f17b0SAlexey Dobriyan .mm_rb = RB_ROOT, 18bb1f17b0SAlexey Dobriyan .pgd = swapper_pg_dir, 19bb1f17b0SAlexey Dobriyan .mm_users = ATOMIC_INIT(2), 20bb1f17b0SAlexey Dobriyan .mm_count = ATOMIC_INIT(1), 21bb1f17b0SAlexey Dobriyan .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem), 22bb1f17b0SAlexey Dobriyan .page_table_lock = __SPIN_LOCK_UNLOCKED(init_mm.page_table_lock), 23bb1f17b0SAlexey Dobriyan .mmlist = LIST_HEAD_INIT(init_mm.mmlist), 24a1b200e2SHeiko Carstens INIT_MM_CONTEXT(init_mm) 25bb1f17b0SAlexey Dobriyan }; 26