Path: blob/master/arch/openrisc/include/asm/mmu_context.h
26481 views
/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* OpenRISC Linux3*4* Linux architectural port borrowing liberally from similar works of5* others. All original copyrights apply as per the original source6* declaration.7*8* OpenRISC implementation:9* Copyright (C) 2003 Matjaz Breskvar <[email protected]>10* Copyright (C) 2010-2011 Jonas Bonn <[email protected]>11* et al.12*/1314#ifndef __ASM_OPENRISC_MMU_CONTEXT_H15#define __ASM_OPENRISC_MMU_CONTEXT_H1617#include <asm-generic/mm_hooks.h>1819#define init_new_context init_new_context20extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);21#define destroy_context destroy_context22extern void destroy_context(struct mm_struct *mm);23extern void switch_mm(struct mm_struct *prev, struct mm_struct *next,24struct task_struct *tsk);2526#define activate_mm(prev, next) switch_mm((prev), (next), NULL)2728/* current active pgd - this is similar to other processors pgd29* registers like cr3 on the i38630*/3132extern volatile pgd_t *current_pgd[]; /* defined in arch/openrisc/mm/fault.c */3334#include <asm-generic/mmu_context.h>3536#endif373839