Loading arch/arm64/include/asm/mmu_context.h +6 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <asm-generic/mm_hooks.h> #include <asm/cputype.h> #include <asm/pgtable.h> #include <linux/msm_rtb.h> #define MAX_ASID_BITS 16 Loading @@ -38,15 +39,19 @@ void __new_context(struct mm_struct *mm); #ifdef CONFIG_PID_IN_CONTEXTIDR static inline void contextidr_thread_switch(struct task_struct *next) { pid_t pid = task_pid_nr(next); asm( " msr contextidr_el1, %0\n" " isb" : : "r" (task_pid_nr(next))); : "r" (pid)); uncached_logk(LOGK_CTXID, (void *)(u64)pid); } #else static inline void contextidr_thread_switch(struct task_struct *next) { uncached_logk(LOGK_CTXID, (void *)(u64)task_pid_nr(next)); } #endif Loading Loading
arch/arm64/include/asm/mmu_context.h +6 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <asm-generic/mm_hooks.h> #include <asm/cputype.h> #include <asm/pgtable.h> #include <linux/msm_rtb.h> #define MAX_ASID_BITS 16 Loading @@ -38,15 +39,19 @@ void __new_context(struct mm_struct *mm); #ifdef CONFIG_PID_IN_CONTEXTIDR static inline void contextidr_thread_switch(struct task_struct *next) { pid_t pid = task_pid_nr(next); asm( " msr contextidr_el1, %0\n" " isb" : : "r" (task_pid_nr(next))); : "r" (pid)); uncached_logk(LOGK_CTXID, (void *)(u64)pid); } #else static inline void contextidr_thread_switch(struct task_struct *next) { uncached_logk(LOGK_CTXID, (void *)(u64)task_pid_nr(next)); } #endif Loading