|
@@ -30,6 +30,7 @@
|
|
#include <linux/irq.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/of.h>
|
|
#include <linux/of.h>
|
|
#include <linux/sched/task_stack.h>
|
|
#include <linux/sched/task_stack.h>
|
|
|
|
+#include <linux/sched/mm.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/mmu_context.h>
|
|
#include <asm/mmu_context.h>
|
|
#include <asm/tlbflush.h>
|
|
#include <asm/tlbflush.h>
|
|
@@ -101,7 +102,7 @@ asmlinkage void __init smp_callin(void)
|
|
struct mm_struct *mm = &init_mm;
|
|
struct mm_struct *mm = &init_mm;
|
|
|
|
|
|
/* All kernel threads share the same mm context. */
|
|
/* All kernel threads share the same mm context. */
|
|
- atomic_inc(&mm->mm_count);
|
|
|
|
|
|
+ mmgrab(mm);
|
|
current->active_mm = mm;
|
|
current->active_mm = mm;
|
|
|
|
|
|
trap_init();
|
|
trap_init();
|