/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_SCORE_MMU_CONTEXT_H #define _ASM_SCORE_MMU_CONTEXT_H #include <linux/errno.h> #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/slab.h> #include <asm-generic/mm_hooks.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> #include <asm/scoreregs.h> /* * For the fast tlb miss handlers, we keep a per cpu array of pointers * to the current pgd for each processor. Also, the proc. id is stuffed * into the context register. */ extern unsigned long asid_cache; extern unsigned long pgd_current; #define TLBMISS_HANDLER_SETUP_PGD(pgd) (pgd_current = (unsigned long)(pgd)) #define TLBMISS_HANDLER_SETUP() \ do { \ write_c0_context(0); \ TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir) \ } while (0) /* * All unused by hardware upper bits will be considered * as a software asid extension. */ #define ASID_VERSION_MASK 0xfffff000 #define ASID_FIRST_VERSION 0x1000 /* PEVN --------- VPN ---------- --ASID--- -NA- */ /* binary: 0000 0000 0000 0000 0000 0000 0001 0000 */ /* binary: 0000 0000 0000 0000 0000 1111 1111 0000 */ #define ASID_INC 0x10 #define ASID_MASK 0xff0
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) {}Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 55 | 100.00% | 1 | 100.00% |
Total | 55 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 67 | 100.00% | 1 | 100.00% |
Total | 67 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 50 | 100.00% | 1 | 100.00% |
Total | 50 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 318 | 98.76% | 1 | 33.33% |
Ingo Molnar | 3 | 0.93% | 1 | 33.33% |
Greg Kroah-Hartman | 1 | 0.31% | 1 | 33.33% |
Total | 322 | 100.00% | 3 | 100.00% |