/usr/src/linux-headers-5.15.0-181/arch/arc/include/asm
NameSizeModeActions
arcregs.h94770644editdlrm
asm-offsets.h1650644editdlrm
asserts.h9580644editdlrm
atomic-llsc.h28640644editdlrm
atomic-spinlock.h25690644editdlrm
atomic.h11530644editdlrm
atomic64-arcv2.h60950644editdlrm
barrier.h13760644editdlrm
bitops.h38850644editdlrm
bug.h8190644editdlrm
cache.h36040644editdlrm
cacheflush.h38240644editdlrm
checksum.h23710644editdlrm
cmpxchg.h31880644editdlrm
current.h5490644editdlrm
delay.h18960644editdlrm
disasm.h38130644editdlrm
dma.h3130644editdlrm
dsp-impl.h38600644editdlrm
dsp.h7960644editdlrm
dwarf.h7460644editdlrm
elf.h19350644editdlrm
entry-arcv2.h74190644editdlrm
entry-compact.h88100644editdlrm
entry.h66870644editdlrm
exec.h2640644editdlrm
fb.h4110644editdlrm
fpu.h11250644editdlrm
futex.h36110644editdlrm
highmem.h14220644editdlrm
hugepage.h20710644editdlrm
io.h62910644editdlrm
irq.h6790644editdlrm
irqflags-arcv2.h34910644editdlrm
irqflags-compact.h42930644editdlrm
irqflags.h3630644editdlrm
jump_label.h19760644editdlrm
Kbuild1530644editdlrm
kdebug.h2540644editdlrm
kgdb.h12390644editdlrm
kprobes.h11860644editdlrm
linkage.h14840644editdlrm
mach_desc.h19430644editdlrm
mmu-arcv2.h24940644editdlrm
mmu.h3870644editdlrm
mmu_context.h55680644editdlrm
module.h4280644editdlrm
page.h33130644editdlrm
pci.h3600644editdlrm
perf_event.h68790644editdlrm
pgalloc.h28880644editdlrm
pgtable-bits-arcv2.h48960644editdlrm
pgtable-levels.h56260644editdlrm
pgtable.h7800644editdlrm
processor.h32530644editdlrm
ptrace.h37590644editdlrm
sections.h2610644editdlrm
segment.h4760644editdlrm
serial.h4980644editdlrm
setup.h12740644editdlrm
shmparam.h2960644editdlrm
smp.h38230644editdlrm
spinlock.h85800644editdlrm
spinlock_types.h9050644editdlrm
stacktrace.h11780644editdlrm
string.h10360644editdlrm
switch_to.h5530644editdlrm
syscall.h17380644editdlrm
syscalls.h5470644editdlrm
thread_info.h33390644editdlrm
timex.h3620644editdlrm
tlb.h2620644editdlrm
tlbflush.h16540644editdlrm
uaccess.h170190644editdlrm
unaligned.h6250644editdlrm
unwind.h34460644editdlrm
vermagic.h1570644editdlrm
vmalloc.h870644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/arch/arc/include/asm/mmu-arcv2.h (2494B)
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012, 2019-20 Synopsys, Inc. (www.synopsys.com) * * MMUv3 (arc700) / MMUv4 (archs) are software page walked and software managed. * This file contains the TLB access registers and commands */ #ifndef _ASM_ARC_MMU_ARCV2_H #define _ASM_ARC_MMU_ARCV2_H /* * TLB Management regs */ #define ARC_REG_MMU_BCR 0x06f #ifdef CONFIG_ARC_MMU_V3 #define ARC_REG_TLBPD0 0x405 #define ARC_REG_TLBPD1 0x406 #define ARC_REG_TLBPD1HI 0 /* Dummy: allows common code */ #define ARC_REG_TLBINDEX 0x407 #define ARC_REG_TLBCOMMAND 0x408 #define ARC_REG_PID 0x409 #define ARC_REG_SCRATCH_DATA0 0x418 #else #define ARC_REG_TLBPD0 0x460 #define ARC_REG_TLBPD1 0x461 #define ARC_REG_TLBPD1HI 0x463 #define ARC_REG_TLBINDEX 0x464 #define ARC_REG_TLBCOMMAND 0x465 #define ARC_REG_PID 0x468 #define ARC_REG_SCRATCH_DATA0 0x46c #endif /* Bits in MMU PID reg */ #define __TLB_ENABLE (1 << 31) #define __PROG_ENABLE (1 << 30) #define MMU_ENABLE (__TLB_ENABLE | __PROG_ENABLE) /* Bits in TLB Index reg */ #define TLB_LKUP_ERR 0x80000000 #ifdef CONFIG_ARC_MMU_V3 #define TLB_DUP_ERR (TLB_LKUP_ERR | 0x00000001) #else #define TLB_DUP_ERR (TLB_LKUP_ERR | 0x40000000) #endif /* * TLB Commands */ #define TLBWrite 0x1 #define TLBRead 0x2 #define TLBGetIndex 0x3 #define TLBProbe 0x4 #define TLBWriteNI 0x5 /* write JTLB without inv uTLBs */ #define TLBIVUTLB 0x6 /* explicitly inv uTLBs */ #ifdef CONFIG_ARC_MMU_V4 #define TLBInsertEntry 0x7 #define TLBDeleteEntry 0x8 #endif /* Masks for actual TLB "PD"s */ #define PTE_BITS_IN_PD0 (_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_HW_SZ) #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ) #define PTE_BITS_NON_RWX_IN_PD1 (PAGE_MASK_PHYS | _PAGE_CACHEABLE) #ifndef __ASSEMBLY__ struct mm_struct; extern int pae40_exist_but_not_enab(void); static inline int is_pae40_enabled(void) { return IS_ENABLED(CONFIG_ARC_HAS_PAE40); } static inline void mmu_setup_asid(struct mm_struct *mm, unsigned long asid) { write_aux_reg(ARC_REG_PID, asid | MMU_ENABLE); } static inline void mmu_setup_pgd(struct mm_struct *mm, void *pgd) { /* PGD cached in MMU reg to avoid 3 mem lookups: task->mm->pgd */ #ifdef CONFIG_ISA_ARCV2 write_aux_reg(ARC_REG_SCRATCH_DATA0, (unsigned int)pgd); #endif } #else .macro ARC_MMU_REENABLE reg lr \reg, [ARC_REG_PID] or \reg, \reg, MMU_ENABLE sr \reg, [ARC_REG_PID] .endm #endif /* !__ASSEMBLY__ */ #endif