data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
⌀
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
⌀
metadata
dict
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_ELF_H #define __ABI_CSKY_ELF_H #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ pr_reg[0] = regs->pc; \ pr_reg[1] = regs->regs[9]; \ pr_reg[2] = regs->usp; \ pr_reg[3] = regs->sr; \ pr_reg[4] = regs->a0; \ pr_reg[5] = regs->a1; \ pr_reg[6] = r...
arch/csky/abiv1/inc/abi/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_ENTRY_H #define __ASM_CSKY_ENTRY_H #include <asm/setup.h> #include <abi/regdef.h> #define LSAVE_PC 8 #define LSAVE_PSR 12 #define LSAVE_A0 24 #define LSAVE_A1 28 #define LSAVE_A2 32 #define LSAVE_A3 36 #define LSAVE_A4 40 #define LSAVE_A5 44 #define usp ss1 ...
arch/csky/abiv1/inc/abi/entry.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/shmparam.h> extern void flush_dcache_page(struct page *page); static inline unsigned long pages_do_alias(unsigned long addr1, unsigned long addr2) { return (addr1 ^ addr2) & (SHMLBA-1); } #define clear_user_page clear_user_page static inline void clear_u...
arch/csky/abiv1/inc/abi/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PGTABLE_BITS_H #define __ASM_CSKY_PGTABLE_BITS_H /* implemented in software */ #define _PAGE_PRESENT (1<<0) #define _PAGE_READ (1<<1) #define _PAGE_WRITE (1<<2) #define _PAGE_ACCESSED (1<<3) #define _PAGE_MODIFIED (1<<4) /* We borrow bit 9 to store the e...
arch/csky/abiv1/inc/abi/pgtable-bits.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_REG_OPS_H #define __ABI_REG_OPS_H #include <asm/reg_ops.h> #define cprcr(reg) \ ({ \ unsigned int tmp; \ asm volatile("cprcr %0, "reg"\n":"=b"(tmp)); \ tmp; \ }) #define cpwcr(reg, val) \ ({ \ asm volatile("cpwcr %0, "reg"\n"::"b"(v...
arch/csky/abiv1/inc/abi/reg_ops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_REGDEF_H #define __ASM_CSKY_REGDEF_H #ifdef __ASSEMBLER__ #define syscallid r1 #else #define syscallid "r1" #endif #define regs_syscallid(regs) regs->regs[9] #define regs_fp(regs) regs->regs[2] /* * PSR format: * | 31 | 30-24 | 23-16 | 15 14 | 13-0 | * ...
arch/csky/abiv1/inc/abi/regdef.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_STRING_H #define __ABI_CSKY_STRING_H #define __HAVE_ARCH_MEMCPY extern void *memcpy(void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMMOVE extern void *memmove(void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMSET extern void *memse...
arch/csky/abiv1/inc/abi/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_PTRACE_H #define __ABI_CSKY_PTRACE_H struct switch_stack { unsigned long r8; unsigned long r9; unsigned long r10; unsigned long r11; unsigned long r12; unsigned long r13; unsigned long r14; unsigned long r15; }; #endif /* __ABI_CSKY_PTRACE_H */
arch/csky/abiv1/inc/abi/switch_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_VDSO_H #define __ABI_CSKY_VDSO_H /* movi r1, 127; addi r1, (139 - 127) */ #define SET_SYSCALL_ID .long 0x20b167f1 #endif /* __ABI_CSKY_VDSO_H */
arch/csky/abiv1/inc/abi/vdso.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/cache.h> #include <linux/highmem.h> #include <linux/mm.h> #include <asm/cache.h> #include <asm/tlbflush.h> void update_mmu_cache_range(struct vm_fault *vmf, struct vm_area_struct *vma, unsigned long addres...
arch/csky/abiv2/cacheflush.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/ptrace.h> #include <linux/uaccess.h> #include <abi/reg_ops.h> #define MTCR_MASK 0xFC00FFE0 #define MFCR_MASK 0xFC00FFE0 #define MTCR_DIST 0xC0006420 #define MFCR_DIST 0xC0006020 /* * fpu_libc_helper() is t...
arch/csky/abiv2/fpu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include <asm/ftrace.h> #include <abi/entry.h> #include <asm/asm-offsets.h> /* * csky-gcc with -pg will put the following asm after prologue: * push r15 * jsri _mcount * * stack ...
arch/csky/abiv2/mcount.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" ENTRY(memcmp) /* Test if len less than 4 bytes. */ mov r3, r0 movi r0, 0 mov r12, r4 cmplti r2, 4 bt .L_compare_by_byte andi r13, r0, 3 movi r19, 4 /* Test if s1...
arch/csky/abiv2/memcmp.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" ENTRY(__memcpy) ENTRY(memcpy) /* Test if len less than 4 bytes. */ mov r12, r0 cmplti r2, 4 bt .L_copy_by_byte andi r13, r0, 3 movi r19, 4 /* Test if dest is not 4 ...
arch/csky/abiv2/memcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" .weak memmove ENTRY(__memmove) ENTRY(memmove) subu r3, r0, r1 cmphs r3, r2 bt memcpy mov r12, r0 addu r0, r0, r2 addu r1, r1, r2 /* Test if len less than 4 bytes. ...
arch/csky/abiv2/memmove.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" .weak memset ENTRY(__memset) ENTRY(memset) /* Test if len less than 4 bytes. */ mov r12, r0 cmplti r2, 8 bt .L_set_by_byte andi r13, r0, 3 movi r19, 4 /* Test if d...
arch/csky/abiv2/memset.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" ENTRY(strcmp) mov a3, a0 /* Check if the s1 addr is aligned. */ xor a2, a3, a1 andi a2, 0x3 bnez a2, 7f andi t1, a0, 0x3 bnez t1, 5f 1: /* If aligned, load word ea...
arch/csky/abiv2/strcmp.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" ENTRY(strcpy) mov a3, a0 /* Check if the src addr is aligned. */ andi t0, a1, 3 bnez t0, 11f 1: /* Check if all the bytes in the word are not zero. *...
arch/csky/abiv2/strcpy.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/module.h> #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_STRING_OPS EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memmove); #endif EXPORT_SYMBOL(memcmp); EXPORT_SYMBOL(strcmp); EXPORT_SYMBOL(strcpy); E...
arch/csky/abiv2/strksyms.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include "sysdep.h" ENTRY(strlen) /* Check if the start addr is aligned. */ mov r3, r0 andi r1, r0, 3 movi r2, 4 movi r0, 0 bnez r1, .L_start_not_aligned LABLE_ALIGN .L_start_addr_alig...
arch/csky/abiv2/strlen.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __SYSDEP_H #define __SYSDEP_H #ifdef __ASSEMBLER__ #if defined(__CK860__) #define LABLE_ALIGN \ .balignw 16, 0x6c03 #define PRE_BNEZAD(R) #define BNEZAD(R, L) \ bnezad R, L #else #define LABLE_ALIGN \ .balignw 8, 0x6c03 #define PRE_BNEZAD(R) \ subi R, 1 #define ...
arch/csky/abiv2/sysdep.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_CACHEFLUSH_H #define __ABI_CSKY_CACHEFLUSH_H /* Keep includes the same across arches. */ #include <linux/mm.h> /* * The cache doesn't need to be flushed when TLB entries change when * the cache is mapped to physical memory, not virtual memory */ #define f...
arch/csky/abiv2/inc/abi/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CKMMUV2_H #define __ASM_CSKY_CKMMUV2_H #include <abi/reg_ops.h> #include <asm/barrier.h> static inline int read_mmu_index(void) { return mfcr("cr<0, 15>"); } static inline void write_mmu_index(int value) { mtcr("cr<0, 15>", value); } static inline int rea...
arch/csky/abiv2/inc/abi/ckmmu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_ELF_H #define __ABI_CSKY_ELF_H /* The member sort in array pr_reg[x] is defined by GDB. */ #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ pr_reg[0] = regs->pc; \ pr_reg[1] = regs->a1; \ pr_reg[2] = regs->a0; \ pr_reg[3] = regs->sr; \ pr_reg[4] = ...
arch/csky/abiv2/inc/abi/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_ENTRY_H #define __ASM_CSKY_ENTRY_H #include <asm/setup.h> #include <abi/regdef.h> #define LSAVE_PC 8 #define LSAVE_PSR 12 #define LSAVE_A0 24 #define LSAVE_A1 28 #define LSAVE_A2 32 #define LSAVE_A3 36 #define LSAVE_A4 40 #define LSAVE_A5 44 #define KSPTOUSP...
arch/csky/abiv2/inc/abi/entry.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_FPU_H #define __ASM_CSKY_FPU_H #include <asm/sigcontext.h> #include <asm/ptrace.h> int fpu_libc_helper(struct pt_regs *regs); void fpu_fpe(struct pt_regs *regs); static inline void init_fpu(void) { mtcr("cr<1, 2>", 0); } void save_to_user_fp(struct user_fp ...
arch/csky/abiv2/inc/abi/fpu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ static inline void copy_user_page(void *to, void *from, unsigned long vaddr, struct page *page) { copy_page(to, from); }
arch/csky/abiv2/inc/abi/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PGTABLE_BITS_H #define __ASM_CSKY_PGTABLE_BITS_H /* implemented in software */ #define _PAGE_ACCESSED (1<<7) #define _PAGE_READ (1<<8) #define _PAGE_WRITE (1<<9) #define _PAGE_PRESENT (1<<10) #define _PAGE_MODIFIED (1<<11) /* We borrow bit 7 to store the...
arch/csky/abiv2/inc/abi/pgtable-bits.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_REG_OPS_H #define __ABI_REG_OPS_H #include <asm/reg_ops.h> static inline unsigned int mfcr_hint(void) { return mfcr("cr31"); } static inline unsigned int mfcr_ccr2(void) { return mfcr("cr23"); } #endif /* __ABI_REG_OPS_H */
arch/csky/abiv2/inc/abi/reg_ops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_REGDEF_H #define __ASM_CSKY_REGDEF_H #ifdef __ASSEMBLER__ #define syscallid r7 #else #define syscallid "r7" #endif #define regs_syscallid(regs) regs->regs[3] #define regs_fp(regs) regs->regs[4] /* * PSR format: * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | ...
arch/csky/abiv2/inc/abi/regdef.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_STRING_H #define __ABI_CSKY_STRING_H #define __HAVE_ARCH_MEMCMP extern int memcmp(const void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMCPY extern void *memcpy(void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMMOVE extern void *me...
arch/csky/abiv2/inc/abi/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_PTRACE_H #define __ABI_CSKY_PTRACE_H struct switch_stack { #ifdef CONFIG_CPU_HAS_HILO unsigned long rhi; unsigned long rlo; unsigned long cr14; unsigned long pad; #endif unsigned long r4; unsigned long r5; unsigned long r6; unsigned long r7; unsigned ...
arch/csky/abiv2/inc/abi/switch_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_VDSO_H #define __ABI_CSKY_VDSO_H /* movi r7, 173 */ #define SET_SYSCALL_ID .long 0x008bea07 #endif /* __ABI_CSKY_VDSO_H */
arch/csky/abiv2/inc/abi/vdso.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_ADDRSPACE_H #define __ASM_CSKY_ADDRSPACE_H #define KSEG0 0x80000000ul #define KSEG0ADDR(a) (((unsigned long)a & 0x1fffffff) | KSEG0) #endif /* __ASM_CSKY_ADDRSPACE_H */
arch/csky/include/asm/addrspace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_ASM_ASID_H #define __ASM_ASM_ASID_H #include <linux/atomic.h> #include <linux/compiler.h> #include <linux/cpumask.h> #include <linux/percpu.h> #include <linux/spinlock.h> struct asid_info { atomic64_t generation; unsigned long *map; atomic64_t __percpu *active; ...
arch/csky/include/asm/asid.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_ATOMIC_H #define __ASM_CSKY_ATOMIC_H #ifdef CONFIG_SMP #include <asm-generic/atomic64.h> #include <asm/cmpxchg.h> #include <asm/barrier.h> #define __atomic_acquire_fence() __bar_brarw() #define __atomic_release_fence() __bar_brwaw() static __always_inline ...
arch/csky/include/asm/atomic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_BARRIER_H #define __ASM_CSKY_BARRIER_H #ifndef __ASSEMBLER__ #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 1...
arch/csky/include/asm/barrier.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_BITOPS_H #define __ASM_CSKY_BITOPS_H #include <linux/compiler.h> #include <asm/barrier.h> /* * asm-generic/bitops/ffs.h */ static inline __attribute_const__ int ffs(int x) { if (!x) return 0; asm volatile ( "brev %0\n" "ff1 %0\n" "addi %0, 1\n" ...
arch/csky/include/asm/bitops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_BUG_H #define __ASM_CSKY_BUG_H #include <linux/compiler.h> #include <linux/const.h> #include <linux/types.h> #define BUG() \ do { \ asm volatile ("bkpt\n"); \ unreachable(); \ } while (0) #define HAVE_ARCH_BUG #include <asm-generic/bug.h> struct...
arch/csky/include/asm/bug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CACHE_H #define __ASM_CSKY_CACHE_H /* bytes per L1 cache line */ #define L1_CACHE_SHIFT CONFIG_L1_CACHE_SHIFT #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define ARCH_DMA_MINALIGN L1_CACHE_BYTES #ifndef __ASSEMBLER__ void dcache_wb_line(unsigned long star...
arch/csky/include/asm/cache.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CACHEFLUSH_H #define __ASM_CSKY_CACHEFLUSH_H #include <linux/mm.h> #include <abi/cacheflush.h> #endif /* __ASM_CSKY_CACHEFLUSH_H */
arch/csky/include/asm/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CACHETYPE_H #define __ASM_CSKY_CACHETYPE_H #include <linux/types.h> #define cpu_dcache_is_aliasing() true #endif
arch/csky/include/asm/cachetype.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CHECKSUM_H #define __ASM_CSKY_CHECKSUM_H #include <linux/in6.h> #include <asm/byteorder.h> static inline __sum16 csum_fold(__wsum csum) { u32 tmp; asm volatile( "mov %1, %0\n" "rori %0, 16\n" "addu %0, %1\n" "lsri %0, 16\n" : "=r"(csum), "=r"(tmp) : ...
arch/csky/include/asm/checksum.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_VDSO_CSKY_CLOCKSOURCE_H #define __ASM_VDSO_CSKY_CLOCKSOURCE_H #include <asm/vdso/clocksource.h> #endif
arch/csky/include/asm/clocksource.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_CMPXCHG_H #define __ASM_CSKY_CMPXCHG_H #ifdef CONFIG_SMP #include <linux/bug.h> #include <asm/barrier.h> #include <linux/cmpxchg-emu.h> #define __xchg_relaxed(new, ptr, size) \ ({ \ __typeof__(ptr) __ptr = (ptr); \ __typeof__(new) __new = (new)...
arch/csky/include/asm/cmpxchg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_ELF_H #define __ASM_CSKY_ELF_H #include <asm/ptrace.h> #include <abi/regdef.h> #define ELF_ARCH EM_CSKY #define EM_CSKY_OLD 39 /* CSKY Relocations */ #define R_CSKY_NONE 0 #define R_CSKY_32 1 #define R_CSKY_PCIMM8BY4 2 ...
arch/csky/include/asm/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_FIXMAP_H #define __ASM_CSKY_FIXMAP_H #include <asm/page.h> #include <asm/memory.h> #ifdef CONFIG_HIGHMEM #include <linux/threads.h> #include <asm/kmap_size.h> #endif enum fixed_addresses { #ifdef CONFIG_HAVE_TCM FIX_TCM = TCM_NR_PAGES, #endif #ifdef CONFIG_H...
arch/csky/include/asm/fixmap.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_FTRACE_H #define __ASM_CSKY_FTRACE_H #define MCOUNT_INSN_SIZE 14 #define HAVE_FUNCTION_GRAPH_FP_TEST #define ARCH_SUPPORTS_FTRACE_OPS 1 #define MCOUNT_ADDR ((unsigned long)_mcount) #ifndef __ASSEMBLER__ extern void _mcount(unsigned long); extern void ftr...
arch/csky/include/asm/ftrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_FUTEX_H #define __ASM_CSKY_FUTEX_H #ifndef CONFIG_SMP #include <asm-generic/futex.h> #else #include <linux/atomic.h> #include <linux/futex.h> #include <linux/uaccess.h> #include <linux/errno.h> #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ { ...
arch/csky/include/asm/futex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_HIGHMEM_H #define __ASM_CSKY_HIGHMEM_H #ifdef __KERNEL__ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/uaccess.h> #include <asm/kmap_size.h> #include <asm/cache.h> /* undef for production */ #define HIGHMEM_DEBUG 1 /* declarations for...
arch/csky/include/asm/highmem.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_IO_H #define __ASM_CSKY_IO_H #include <linux/pgtable.h> #include <linux/types.h> /* * I/O memory access primitives. Reads are ordered relative to any * following Normal memory access. Writes are ordered relative to any prior * Normal memory access. * * F...
arch/csky/include/asm/io.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_IRQ_WORK_H #define __ASM_CSKY_IRQ_WORK_H static inline bool arch_irq_work_has_interrupt(void) { return true; } #endif /* __ASM_CSKY_IRQ_WORK_H */
arch/csky/include/asm/irq_work.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_IRQFLAGS_H #define __ASM_CSKY_IRQFLAGS_H #include <abi/reg_ops.h> static inline unsigned long arch_local_irq_save(void) { unsigned long flags; flags = mfcr("psr"); asm volatile("psrclr ie\n":::"memory"); return flags; } #define arch_local_irq_save arch_lo...
arch/csky/include/asm/irqflags.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_CSKY_JUMP_LABEL_H #define __ASM_CSKY_JUMP_LABEL_H #ifndef __ASSEMBLER__ #include <linux/types.h> #define JUMP_LABEL_NOP_SIZE 4 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) { asm goto( "1: nop32 \n" ...
arch/csky/include/asm/jump_label.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_CSKY_KPROBES_H #define __ASM_CSKY_KPROBES_H #include <asm-generic/kprobes.h> #ifdef CONFIG_KPROBES #include <linux/types.h> #include <linux/ptrace.h> #include <linux/percpu.h> #define __ARCH_WANT_KPROBES_INSN_SLOT #define MAX_INSN_SIZE 1 #define flush_ins...
arch/csky/include/asm/kprobes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_MEMORY_H #define __ASM_CSKY_MEMORY_H #include <linux/compiler.h> #include <linux/const.h> #include <linux/types.h> #include <linux/sizes.h> #define FIXADDR_TOP _AC(0xffffc000, UL) #define PKMAP_BASE _AC(0xff800000, UL) #define VMALLOC_START (PAGE_OFFSET + LOW...
arch/csky/include/asm/memory.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_MMU_H #define __ASM_CSKY_MMU_H typedef struct { atomic64_t asid; void *vdso; cpumask_t icache_stale_mask; } mm_context_t; #endif /* __ASM_CSKY_MMU_H */
arch/csky/include/asm/mmu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_MMU_CONTEXT_H #define __ASM_CSKY_MMU_CONTEXT_H #include <asm-generic/mm_hooks.h> #include <asm/setup.h> #include <asm/page.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> #include <linux/errno.h> #include <linux/sched.h> #include <abi/ckmmu.h> #defi...
arch/csky/include/asm/mmu_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PAGE_H #define __ASM_CSKY_PAGE_H #include <asm/setup.h> #include <asm/cache.h> #include <linux/const.h> #include <vdso/page.h> #define THREAD_SIZE (PAGE_SIZE * 2) #define THREAD_MASK (~(THREAD_SIZE - 1)) #define THREAD_SHIFT (PAGE_SHIFT + 1) /* * For C-SK...
arch/csky/include/asm/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_CSKY_PCI_H #define __ASM_CSKY_PCI_H #include <linux/types.h> #include <linux/slab.h> #include <linux/dma-mapping.h> #include <asm/io.h> /* Generic PCI */ #include <asm-generic/pci.h> #endif /* __ASM_CSKY_PCI_H */
arch/csky/include/asm/pci.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PERF_EVENT_H #define __ASM_CSKY_PERF_EVENT_H #include <abi/regdef.h> #define perf_arch_fetch_caller_regs(regs, __ip) { \ (regs)->pc = (__ip); \ regs_fp(regs) = (unsigned long) __builtin_frame_address(0); \ asm volatile("mov %0, sp\n":"=r"((regs)->usp)); \ ...
arch/csky/include/asm/perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PGALLOC_H #define __ASM_CSKY_PGALLOC_H #include <linux/highmem.h> #include <linux/mm.h> #include <linux/sched.h> #define __HAVE_ARCH_PTE_ALLOC_ONE_KERNEL #include <asm-generic/pgalloc.h> static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd...
arch/csky/include/asm/pgalloc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PGTABLE_H #define __ASM_CSKY_PGTABLE_H #include <asm/fixmap.h> #include <asm/memory.h> #include <asm/addrspace.h> #include <abi/pgtable-bits.h> #include <asm-generic/pgtable-nopmd.h> #define PGDIR_SHIFT 22 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) #define PGD...
arch/csky/include/asm/pgtable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PROBES_H #define __ASM_CSKY_PROBES_H typedef u32 probe_opcode_t; typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *); /* architecture specific copy of original instruction */ struct arch_probe_insn { probe_opcode_t *insn; probes_handle...
arch/csky/include/asm/probes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PROCESSOR_H #define __ASM_CSKY_PROCESSOR_H #include <linux/bitops.h> #include <linux/cache.h> #include <asm/ptrace.h> #include <asm/current.h> #include <abi/reg_ops.h> #include <abi/regdef.h> #include <abi/switch_context.h> #ifdef CONFIG_CPU_HAS_FPU #include <...
arch/csky/include/asm/processor.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PTRACE_H #define __ASM_CSKY_PTRACE_H #include <uapi/asm/ptrace.h> #include <asm/traps.h> #include <linux/types.h> #include <linux/compiler.h> #ifndef __ASSEMBLER__ #define PS_S 0x80000000 /* Supervisor Mode */ #define USR_BKPT 0x1464 #define arch_has_singl...
arch/csky/include/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_REGS_OPS_H #define __ASM_REGS_OPS_H #define mfcr(reg) \ ({ \ unsigned int tmp; \ asm volatile( \ "mfcr %0, "reg"\n" \ : "=r"(tmp) \ : \ : "memory"); \ tmp; \ }) #define mtcr(reg, val) \ ({ \ asm volatile( \ "mtcr %0, "reg"\n" \ : \ : "...
arch/csky/include/asm/reg_ops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_SECCOMP_H #define _ASM_SECCOMP_H #include <asm-generic/seccomp.h> #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_CSKY #define SECCOMP_ARCH_NATIVE_NR NR_syscalls #define SECCOMP_ARCH_NATIVE_NAME "csky" #endif /* _ASM_SECCOMP_H */
arch/csky/include/asm/seccomp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SECTIONS_H #define __ASM_SECTIONS_H #include <asm-generic/sections.h> extern char _start[]; asmlinkage void csky_start(unsigned int unused, void *dtb_start); asmlinkage void csky_start_secondary(void); #endif /* __ASM_SECTIONS_H */
arch/csky/include/asm/sections.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SHMPARAM_H #define __ASM_CSKY_SHMPARAM_H #define SHMLBA (4 * PAGE_SIZE) #define __ARCH_FORCE_SHMLBA #endif /* __ASM_CSKY_SHMPARAM_H */
arch/csky/include/asm/shmparam.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SMP_H #define __ASM_CSKY_SMP_H #include <linux/cpumask.h> #include <linux/irqreturn.h> #include <linux/threads.h> #ifdef CONFIG_SMP void __init setup_smp(void); void __init setup_smp_ipi(void); void arch_send_call_function_ipi_mask(struct cpumask *mask); ...
arch/csky/include/asm/smp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SPINLOCK_H #define __ASM_CSKY_SPINLOCK_H #include <asm/qspinlock.h> #include <asm/qrwlock.h> /* See include/linux/spinlock.h */ #define smp_mb__after_spinlock() smp_mb() #endif /* __ASM_CSKY_SPINLOCK_H */
arch/csky/include/asm/spinlock.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SPINLOCK_TYPES_H #define __ASM_CSKY_SPINLOCK_TYPES_H #include <asm-generic/qspinlock_types.h> #include <asm-generic/qrwlock_types.h> #endif /* __ASM_CSKY_SPINLOCK_TYPES_H */
arch/csky/include/asm/spinlock_types.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_STACKPROTECTOR_H #define _ASM_STACKPROTECTOR_H 1 extern unsigned long __stack_chk_guard; /* * Initialize the stackprotector canary value. * * NOTE: this must only be called from functions that never return, * and it must always be inlined. */ static __always_in...
arch/csky/include/asm/stackprotector.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _CSKY_STRING_MM_H_ #define _CSKY_STRING_MM_H_ #ifndef __ASSEMBLER__ #include <linux/types.h> #include <linux/compiler.h> #include <abi/string.h> #endif #endif /* _CSKY_STRING_MM_H_ */
arch/csky/include/asm/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SWITCH_TO_H #define __ASM_CSKY_SWITCH_TO_H #include <linux/thread_info.h> #ifdef CONFIG_CPU_HAS_FPU #include <abi/fpu.h> static inline void __switch_to_fpu(struct task_struct *prev, struct task_struct *next) { save_to_user_fp(&prev->thread.user_fp); r...
arch/csky/include/asm/switch_to.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SYSCALL_H #define __ASM_SYSCALL_H #include <linux/sched.h> #include <linux/err.h> #include <abi/regdef.h> #include <uapi/linux/audit.h> extern void *sys_call_table[]; static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) { return regs_...
arch/csky/include/asm/syscall.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_SYSCALLS_H #define __ASM_CSKY_SYSCALLS_H #include <asm-generic/syscalls.h> long sys_cacheflush(void __user *, unsigned long, int); long sys_set_thread_area(unsigned long addr); long sys_csky_fadvise64_64(int fd, int advice, loff_t offset, loff_t len); #end...
arch/csky/include/asm/syscalls.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_TCM_H #define __ASM_CSKY_TCM_H #ifndef CONFIG_HAVE_TCM #error "You should not be including tcm.h unless you have a TCM!" #endif #include <linux/compiler.h> /* Tag variables with this */ #define __tcmdata __section(".tcm.data") /* Tag constants with this */ #...
arch/csky/include/asm/tcm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_CSKY_THREAD_INFO_H #define _ASM_CSKY_THREAD_INFO_H #ifndef __ASSEMBLER__ #include <asm/types.h> #include <asm/page.h> #include <asm/processor.h> #include <abi/switch_context.h> struct thread_info { struct task_struct *task; void *dump_exec_domain; unsigned lo...
arch/csky/include/asm/thread_info.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_TLB_H #define __ASM_CSKY_TLB_H #include <asm/cacheflush.h> #include <asm-generic/tlb.h> #endif /* __ASM_CSKY_TLB_H */
arch/csky/include/asm/tlb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_TLBFLUSH_H #define __ASM_TLBFLUSH_H /* * TLB flushing: * * - flush_tlb_all() flushes all processes TLB entries * - flush_tlb_mm(mm) flushes the specified mm context TLB entries * - flush_tlb_page(vma, vmaddr) flushes one page * - flush_tlb_range(vma, star...
arch/csky/include/asm/tlbflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_TRAPS_H #define __ASM_CSKY_TRAPS_H #include <linux/linkage.h> #define VEC_RESET 0 #define VEC_ALIGN 1 #define VEC_ACCESS 2 #define VEC_ZERODIV 3 #define VEC_ILLEGAL 4 #define VEC_PRIV 5 #define VEC_TRACE 6 #define VEC_BREAKPOINT 7 #define VEC_UNRECOVER 8 #def...
arch/csky/include/asm/traps.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_UACCESS_H #define __ASM_CSKY_UACCESS_H /* * __put_user_fn */ extern int __put_user_bad(void); #define __put_user_asm_b(x, ptr, err) \ do { \ int errcode; \ __asm__ __volatile__( \ "1: stb %1, (%2,0) \n" \ " br 3f \n" \ ...
arch/csky/include/asm/uaccess.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <uapi/asm/unistd.h> #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SYS_CLONE #define NR_syscalls (__NR_syscalls)
arch/csky/include/asm/unistd.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_CSKY_UPROBES_H #define __ASM_CSKY_UPROBES_H #include <asm/probes.h> #define MAX_UINSN_BYTES 4 #define UPROBE_SWBP_INSN USR_BKPT #define UPROBE_SWBP_INSN_SIZE 2 #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES typedef u32 uprobe_opcode_t; struct arch_uprobe_t...
arch/csky/include/asm/uprobes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_VDSO_H #define __ASM_CSKY_VDSO_H #include <linux/types.h> /* * The VDSO symbols are mapped into Linux so we can just use regular symbol * addressing to get their offsets in userspace. The symbols are mapped at an * offset of 0, but since the linker must s...
arch/csky/include/asm/vdso.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_CSKY_BYTEORDER_H #define __ASM_CSKY_BYTEORDER_H #include <linux/byteorder/little_endian.h> #endif /* __ASM_CSKY_BYTEORDER_H */
arch/csky/include/uapi/asm/byteorder.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_CSKY_CACHECTL_H #define __ASM_CSKY_CACHECTL_H /* * See "man cacheflush" */ #define ICACHE (1<<0) #define DCACHE (1<<1) #define BCACHE (ICACHE|DCACHE) #endif /* __ASM_CSKY_CACHECTL_H */
arch/csky/include/uapi/asm/cachectl.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_CSKY_PERF_REGS_H #define _ASM_CSKY_PERF_REGS_H /* Index of struct pt_regs */ enum perf_event_csky_regs { PERF_REG_CSKY_TLS, PERF_REG_CSKY_LR, PERF_REG_CSKY_PC, PERF_REG_CSKY_SR, PERF_REG_CSKY_SP, PERF_REG_CSKY_ORIG_A0, PERF_REG_CSKY_A0...
arch/csky/include/uapi/asm/perf_regs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _CSKY_PTRACE_H #define _CSKY_PTRACE_H #ifndef __ASSEMBLER__ struct pt_regs { unsigned long tls; unsigned long lr; unsigned long pc; unsigned long sr; unsigned long usp; /* * a0, a1, a2, a3: * abiv1: r2, r3, r4, r5 * abiv2: r0, r1, r2...
arch/csky/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_CSKY_SIGCONTEXT_H #define __ASM_CSKY_SIGCONTEXT_H #include <asm/ptrace.h> struct sigcontext { struct pt_regs sc_pt_regs; struct user_fp sc_user_fp; }; #endif /* __ASM_CSKY_SIGCONTEXT_H */
arch/csky/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #include <asm/unistd_32.h> #define __NR_sync_file_range2 84 #undef __NR_sync_file_range
arch/csky/include/uapi/asm/unistd.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #define COMPILE_OFFSETS #include <linux/sched.h> #include <linux/kernel_stat.h> #include <linux/kbuild.h> #include <abi/regdef.h> int main(void) { /* offsets into the task struct */ DEFINE(TASK_THREAD_INFO, offsetof(stru...
arch/csky/kernel/asm-offsets.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include <abi/entry.h> .text /* * int csky_cmpxchg(int oldval, int newval, int *ptr) * * If *ptr != oldval && return 1, * else *ptr = newval return 0. */ ENTRY(csky_cmpxchg) USPTOKSP R...
arch/csky/kernel/atomic.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/of.h> #include <linux/init.h> #include <linux/seq_file.h> #include <linux/memblock.h> #include <abi/reg_ops.h> static void percpu_print(void *arg) { struct seq_file *m = (struct seq_file *)arg; unsigned i...
arch/csky/kernel/cpu-probe.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/linkage.h> #include <abi/entry.h> #include <abi/pgtable-bits.h> #include <asm/errno.h> #include <asm/setup.h> #include <asm/unistd.h> #include <asm/asm-offsets.h> #include <linux/threads.h> #include <asm/p...
arch/csky/kernel/entry.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/ftrace.h> #include <linux/uaccess.h> #include <linux/stop_machine.h> #include <asm/cacheflush.h> #ifdef CONFIG_DYNAMIC_FTRACE #define NOP 0x4000 #define NOP32_HI 0xc400 #define NOP32_LO 0x4820 #define PUSH...
arch/csky/kernel/ftrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/page.h> #include <abi/entry.h> __HEAD ENTRY(_start) SETUP_MMU /* set stack point */ lrw r6, init_thread_union + THREAD_SIZE mov sp, r6 jmpi csky_start END(_start) #ifdef CONFIG_SMP .align 10 ENTRY(_star...
arch/csky/kernel/head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/irqchip.h> #include <asm/traps.h> #include <asm/smp.h> void __init init_IRQ(void) { irqchip_init(); #ifdef CONFIG_SMP setup_smp_i...
arch/csky/kernel/irq.c
null
null
null
null
null