diff options
Diffstat (limited to 'arch/score/kernel/traps.c')
-rw-r--r-- | arch/score/kernel/traps.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/score/kernel/traps.c b/arch/score/kernel/traps.c index d948a6818961..12daf45369b4 100644 --- a/arch/score/kernel/traps.c +++ b/arch/score/kernel/traps.c @@ -23,8 +23,12 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <linux/module.h> -#include <linux/sched.h> +#include <linux/extable.h> +#include <linux/ptrace.h> +#include <linux/sched/mm.h> +#include <linux/sched/signal.h> +#include <linux/sched/debug.h> +#include <linux/mm_types.h> #include <asm/cacheflush.h> #include <asm/irq.h> @@ -336,7 +340,7 @@ void __init trap_init(void) set_except_vector(18, handle_dbe); flush_icache_range(DEBUG_VECTOR_BASE_ADDR, IRQ_VECTOR_BASE_ADDR); - atomic_inc(&init_mm.mm_count); + mmgrab(&init_mm); current->active_mm = &init_mm; cpu_cache_init(); } |