ckmmu.h (3eb66e91a25497065c5322b1268cbc3953642227) | ckmmu.h (f62e31623d718a7c20d9da98de48361624d7360a) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#ifndef __ASM_CSKY_CKMMUV2_H 5#define __ASM_CSKY_CKMMUV2_H 6 7#include <abi/reg_ops.h> 8#include <asm/barrier.h> --- 28 unchanged lines hidden (view full) --- 37 return mfcr("cr<4, 15>"); 38} 39 40static inline void write_mmu_entryhi(int value) 41{ 42 mtcr("cr<4, 15>", value); 43} 44 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#ifndef __ASM_CSKY_CKMMUV2_H 5#define __ASM_CSKY_CKMMUV2_H 6 7#include <abi/reg_ops.h> 8#include <asm/barrier.h> --- 28 unchanged lines hidden (view full) --- 37 return mfcr("cr<4, 15>"); 38} 39 40static inline void write_mmu_entryhi(int value) 41{ 42 mtcr("cr<4, 15>", value); 43} 44 |
45static inline unsigned long read_mmu_msa0(void) 46{ 47 return mfcr("cr<30, 15>"); 48} 49 50static inline void write_mmu_msa0(unsigned long value) 51{ 52 mtcr("cr<30, 15>", value); 53} 54 55static inline unsigned long read_mmu_msa1(void) 56{ 57 return mfcr("cr<31, 15>"); 58} 59 60static inline void write_mmu_msa1(unsigned long value) 61{ 62 mtcr("cr<31, 15>", value); 63} 64 |
|
45/* 46 * TLB operations. 47 */ 48static inline void tlb_probe(void) 49{ 50 mtcr("cr<8, 15>", 0x80000000); 51} 52 --- 35 unchanged lines hidden --- | 65/* 66 * TLB operations. 67 */ 68static inline void tlb_probe(void) 69{ 70 mtcr("cr<8, 15>", 0x80000000); 71} 72 --- 35 unchanged lines hidden --- |