/usr/src/linux-headers-5.15.0-181/arch/csky/include/asm
NameSizeModeActions
vdso/-0755rm
addrspace.h2310644editdlrm
asid.h24400644editdlrm
barrier.h25330644editdlrm
bitops.h13630644editdlrm
bug.h5650644editdlrm
cache.h8610644editdlrm
cacheflush.h1930644editdlrm
checksum.h9440644editdlrm
clocksource.h1590644editdlrm
cmpxchg.h18240644editdlrm
elf.h27230644editdlrm
fixmap.h7470644editdlrm
ftrace.h5580644editdlrm
futex.h26050644editdlrm
highmem.h11140644editdlrm
io.h13840644editdlrm
irqflags.h11320644editdlrm
irq_work.h2080644editdlrm
Kbuild1990644editdlrm
kprobes.h11580644editdlrm
memory.h6570644editdlrm
mmu.h2160644editdlrm
mmu_context.h9590644editdlrm
page.h27570644editdlrm
pci.h6800644editdlrm
perf_event.h3590644editdlrm
pgalloc.h16570644editdlrm
pgtable.h69850644editdlrm
probes.h5540644editdlrm
processor.h25250644editdlrm
ptrace.h24760644editdlrm
reg_ops.h3820644editdlrm
seccomp.h2830644editdlrm
segment.h1870644editdlrm
shmparam.h1970644editdlrm
smp.h6260644editdlrm
spinlock.h18920644editdlrm
spinlock_types.h5040644editdlrm
stackprotector.h7050644editdlrm
string.h2330644editdlrm
switch_to.h9230644editdlrm
syscall.h15630644editdlrm
syscalls.h3510644editdlrm
tcm.h6650644editdlrm
thread_info.h28660644editdlrm
tlb.h5080644editdlrm
tlbflush.h8240644editdlrm
traps.h7960644editdlrm
uaccess.h52710644editdlrm
unistd.h1060644editdlrm
uprobes.h6690644editdlrm
vdso.h7840644editdlrm
vmalloc.h900644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/arch/csky/include/asm/barrier.h (2533B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_BARRIER_H #define __ASM_CSKY_BARRIER_H #ifndef __ASSEMBLY__ #define nop() asm volatile ("nop\n":::"memory") #ifdef CONFIG_SMP /* * bar.brwarws: ordering barrier for all load/store instructions * before/after * * |31|30 26|25 21|20 16|15 10|9 5|4 0| * 1 10000 00000 00000 100001 00001 0 bw br aw ar * * b: before * a: after * r: read * w: write * * Here are all combinations: * * bar.brw * bar.br * bar.bw * bar.arw * bar.ar * bar.aw * bar.brwarw * bar.brarw * bar.bwarw * bar.brwar * bar.brwaw * bar.brar * bar.bwaw */ #define __bar_brw() asm volatile (".long 0x842cc000\n":::"memory") #define __bar_br() asm volatile (".long 0x8424c000\n":::"memory") #define __bar_bw() asm volatile (".long 0x8428c000\n":::"memory") #define __bar_arw() asm volatile (".long 0x8423c000\n":::"memory") #define __bar_ar() asm volatile (".long 0x8421c000\n":::"memory") #define __bar_aw() asm volatile (".long 0x8422c000\n":::"memory") #define __bar_brwarw() asm volatile (".long 0x842fc000\n":::"memory") #define __bar_brarw() asm volatile (".long 0x8427c000\n":::"memory") #define __bar_bwarw() asm volatile (".long 0x842bc000\n":::"memory") #define __bar_brwar() asm volatile (".long 0x842dc000\n":::"memory") #define __bar_brwaw() asm volatile (".long 0x842ec000\n":::"memory") #define __bar_brar() asm volatile (".long 0x8425c000\n":::"memory") #define __bar_brar() asm volatile (".long 0x8425c000\n":::"memory") #define __bar_bwaw() asm volatile (".long 0x842ac000\n":::"memory") #define __smp_mb() __bar_brwarw() #define __smp_rmb() __bar_brar() #define __smp_wmb() __bar_bwaw() #define ACQUIRE_FENCE ".long 0x8427c000\n" #define __smp_acquire_fence() __bar_brarw() #define __smp_release_fence() __bar_brwaw() #endif /* CONFIG_SMP */ /* * sync: completion barrier, all sync.xx instructions * guarantee the last response received by bus transaction * made by ld/st instructions before sync.s * sync.s: inherit from sync, but also shareable to other cores * sync.i: inherit from sync, but also flush cpu pipeline * sync.is: the same with sync.i + sync.s */ #define mb() asm volatile ("sync\n":::"memory") #ifdef CONFIG_CPU_HAS_CACHEV2 /* * Using three sync.is to prevent speculative PTW */ #define sync_is() asm volatile ("sync.is\nsync.is\nsync.is\n":::"memory") #endif #include #endif /* __ASSEMBLY__ */ #endif /* __ASM_CSKY_BARRIER_H */