cregit-Linux how code gets into the kernel

Release 4.14 arch/sh/include/asm/mmu_context_32.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_MMU_CONTEXT_32_H

#define __ASM_SH_MMU_CONTEXT_32_H

/*
 * Destroy context related info for an mm_struct that is about
 * to be put to rest.
 */

static inline void destroy_context(struct mm_struct *mm) { /* Do nothing */ }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt13100.00%1100.00%
Total13100.00%1100.00%

#ifdef CONFIG_CPU_HAS_PTEAEX
static inline void set_asid(unsigned long asid) { __raw_writel(asid, MMU_PTEAEX); }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt18100.00%1100.00%
Total18100.00%1100.00%


static inline unsigned long get_asid(void) { return __raw_readl(MMU_PTEAEX) & MMU_CONTEXT_ASID_MASK; }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt18100.00%1100.00%
Total18100.00%1100.00%

#else
static inline void set_asid(unsigned long asid) { unsigned long __dummy; __asm__ __volatile__ ("mov.l %2, %0\n\t" "and %3, %0\n\t" "or %1, %0\n\t" "mov.l %0, %2" : "=&r" (__dummy) : "r" (asid), "m" (__m(MMU_PTEH)), "r" (0xffffff00)); }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt18100.00%1100.00%
Total18100.00%1100.00%


static inline unsigned long get_asid(void) { unsigned long asid; __asm__ __volatile__ ("mov.l %1, %0" : "=r" (asid) : "m" (__m(MMU_PTEH))); asid &= MMU_CONTEXT_ASID_MASK; return asid; }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt24100.00%1100.00%
Total24100.00%1100.00%

#endif /* CONFIG_CPU_HAS_PTEAEX */ /* MMU_TTB is used for optimizing the fault handling. */
static inline void set_TTB(pgd_t *pgd) { __raw_writel((unsigned long)pgd, MMU_TTB); }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt22100.00%2100.00%
Total22100.00%2100.00%


static inline pgd_t *get_TTB(void) { return (pgd_t *)__raw_readl(MMU_TTB); }

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt20100.00%2100.00%
Total20100.00%2100.00%

#endif /* __ASM_SH_MMU_CONTEXT_32_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt15299.35%375.00%
Greg Kroah-Hartman10.65%125.00%
Total153100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.