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-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_STACKTRACE_H #define __ASM_STACKTRACE_H #include <linux/sched.h> /** * arc_unwind_core - Unwind the kernel mode stack fo...
arch/arc/include/asm/stacktrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: May 2011 * -We had half-optimised memset/memcpy, got better versions of those * -Added memcmp, strchr, strcpy, strcmp, strlen * * Amit Bhor: Codito Technologies 2004 */ #if...
arch/arc/include/asm/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_SWITCH_TO_H #define _ASM_ARC_SWITCH_TO_H #ifndef __ASSEMBLER__ #include <linux/sched.h> #include <asm/dsp-impl.h> #include <asm/fpu.h> struct task_struct *__switch_to(str...
arch/arc/include/asm/switch_to.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_SYSCALL_H #define _ASM_ARC_SYSCALL_H 1 #include <uapi/linux/audit.h> #include <linux/err.h> #include <linux/sched.h> #include <asm/unistd.h> #include <asm/ptrace.h> /* in...
arch/arc/include/asm/syscall.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_SYSCALLS_H #define _ASM_ARC_SYSCALLS_H 1 #include <linux/compiler.h> #include <linux/linkage.h> #include <linux/types.h> int sys_clone_wrapper(int, int, int, int, int); i...
arch/arc/include/asm/syscalls.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: Oct 2009 * No need for ARC specific thread_info allocator (kmalloc/free). This is * anyways one page allocation, thus slab alloc can be short-circuited and * the generic vers...
arch/arc/include/asm/thread_info.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_TIMEX_H #define _ASM_ARC_TIMEX_H #define CLOCK_TICK_RATE 80000000 /* slated to be removed */ #include <asm-generic/timex.h> /* XXX: get_cycles() to be implemented with RT...
arch/arc/include/asm/timex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_TLB_H #define _ASM_ARC_TLB_H #include <linux/pagemap.h> #include <asm-generic/tlb.h> #endif /* _ASM_ARC_TLB_H */
arch/arc/include/asm/tlb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_TLBFLUSH__ #define __ASM_ARC_TLBFLUSH__ #include <linux/mm.h> void local_flush_tlb_all(void); void local_flush_tlb_mm(struct mm_struct *mm); void local_flush_tlb_page(str...
arch/arc/include/asm/tlbflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: June 2010 * -__clear_user( ) called multiple times during elf load was byte loop * converted to do as much word clear as possible. * * vineetg: Dec 2009 * -Hand craft...
arch/arc/include/asm/uaccess.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_ARC_UNISTD_H #define _ASM_ARC_UNISTD_H #include <uapi/asm/unistd.h> #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_FORK #define NR_syscalls __NR_syscalls #endif
arch/arc/include/asm/unistd.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_UNWIND_H #define _ASM_ARC_UNWIND_H #ifdef CONFIG_ARC_DW2_UNWIND #include <linux/sched.h> struct arc700_regs { unsigned long r0; unsigned long r1; unsigned long r2; un...
arch/arc/include/asm/unwind.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_VERMAGIC_H #define _ASM_VERMAGIC_H #define MODULE_ARCH_VERMAGIC "ARC700" #endif /* _ASM_VERMAGIC_H */
arch/arc/include/asm/vermagic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_BPF_PERF_EVENT_H__ #define _UAPI__ASM_BPF_PERF_EVENT_H__ #include <asm/ptrace.h> typedef struct user_regs_struct bpf_user_pt_regs_t; #endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */
arch/arc/include/uapi/asm/bpf_perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #ifndef __ASM_ARC_BYTEORDER_H #define __ASM_ARC_BYTEORDER_H #ifdef __BIG_ENDIAN__ #include <linux/byteorder/big_endian.h>...
arch/arc/include/uapi/asm/byteorder.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #ifndef __ARC_ASM_CACHECTL_H #define __ARC_ASM_CACHECTL_H /* * ARC ABI flags defined for Android's finegrained cacheflus...
arch/arc/include/uapi/asm/cachectl.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #ifndef _UAPI__ASM_ARC_ELF_H #define _UAPI__ASM_ARC_ELF_H #include <asm/ptrace.h> /* for user_regs_struct */ /* Machine...
arch/arc/include/uapi/asm/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #ifndef _UAPI__ASM_ARC_PAGE_H #define _UAPI__ASM_ARC_PAGE_H #include <linux/const.h> /* PAGE_SHIFT determines the page s...
arch/arc/include/uapi/asm/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. * * Amit Bhor, Sameer Dhavale: Codito Technologies 2004 */ #ifndef _UAPI__ASM_ARC_PTRACE_H #define _UAPI__ASM_ARC_PTRACE_H ...
arch/arc/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* * setup.h is part of userspace header ABI so UAPI scripts have to generate it * even if there's nothing to export - causing empty <uapi/asm/setup.h> * However to prevent "patch" from discarding it we add this placeholder * comment */
arch/arc/include/uapi/asm/setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #ifndef _ASM_ARC_SIGCONTEXT_H #define _ASM_ARC_SIGCONTEXT_H #include <asm/ptrace.h> /* * Signal context structure - con...
arch/arc/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. * * Amit Bhor, Sameer Dhavale: Codito Technologies 2004 */ #ifndef _ASM_ARC_SIGNAL_H #define _ASM_ARC_SIGNAL_H /* * This ...
arch/arc/include/uapi/asm/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. * * vineetg: May 2011 * -Support single cycle endian-swap insn in ARC700 4.10 * * vineetg: June 2009 * -Better htonl im...
arch/arc/include/uapi/asm/swab.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * published by the Free Software Foundation. */ #include <asm/unistd_32.h>
arch/arc/include/uapi/asm/unistd.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arc_hostlink.c: Pseudo-driver for Metaware provided "hostlink" facility * * Allows Linux userland access to host in absence of any peripherals. * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/fs.h> /* file_operations...
arch/arc/kernel/arc_hostlink.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arcksyms.c - Exporting symbols not exportable from their own sources * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/module.h> /* libgcc functions, not part of kernel sources */ extern void __ashldi3(void); extern void...
arch/arc/kernel/arcksyms.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #define COMPILE_OFFSETS #include <linux/sched.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/thread_info.h> #include <linux/kbuild.h> #include <linux/ptrace.h> #include <...
arch/arc/kernel/asm-offsets.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: Aug 2009 * -Moved core context switch macro out of entry.S into this file. * -This is the more "natural" hand written assembler */ #include <linux/linkage.h> #include <asm/en...
arch/arc/kernel/ctx_sw_asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) * * Based on reduced version of METAG */ #include <linux/init.h> #include <linux/reboot.h> #include <linux/memblock.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <asm/mach_desc.h> #include <asm/serial....
arch/arc/kernel/devtree.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * several functions that help interpret ARC instructions * used for unaligned accesses, kprobes and kgdb * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/types.h> #include <linux/kprobes.h> #include <linux/slab.h> #includ...
arch/arc/kernel/disasm.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * ARCv2 ISA based core Low Level Intr/Traps/Exceptions(non-TLB) Handling * * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> /* ARC_{ENTRY,EXIT} */ #include <asm/entry.h> /* SAVE_ALL_{INT1,INT2,TRAP...} */ #include <asm/errno...
arch/arc/kernel/entry-arcv2.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Low Level Interrupts/Traps/Exceptions(non-TLB) Handling for ARCompact ISA * * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: May 2011 * -Userspace unaligned access ...
arch/arc/kernel/entry-compact.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Common Low Level Interrupts/Traps/Exceptions(non-TLB) Handling for ARC * (included from entry-<isa>.S * * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ /*--------------------...
arch/arc/kernel/entry.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * fpu.c - save/restore of Floating Point Unit Registers on task switch * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/sched.h> #include <asm/fpu.h> #ifdef CONFIG_ISA_ARCOMPACT /* * To save/restore FPU regs, simplest s...
arch/arc/kernel/fpu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * ARC CPU startup Code * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: Dec 2007 * -Check if we are running on Simulator or on real hardware * to skip certain things during boot on simulator */ #include <linux/linka...
arch/arc/kernel/head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2014 Synopsys, Inc. (www.synopsys.com) */ #include <linux/interrupt.h> #include <linux/module.h> #include <linux/of.h> #include <linux/irqdomain.h> #include <linux/irqchip.h> #include <asm/irq.h> #define NR_EXCEPTIONS 16 struct bcr_irq_arcv2 { #ifdef CONF...
arch/arc/kernel/intc-arcv2.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2011-12 Synopsys, Inc. (www.synopsys.com) */ #include <linux/interrupt.h> #include <linux/module.h> #include <linux/of.h> #include <linux/irqdomain.h> #include <linux/irqchip.h> #include <asm/irq.h> #define NR_CPU_IRQS 32 /* number of irq lines coming in *...
arch/arc/kernel/intc-compact.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2011-12 Synopsys, Inc. (www.synopsys.com) */ #include <linux/interrupt.h> #include <linux/irqchip.h> #include <asm/mach_desc.h> #include <asm/irq_regs.h> #include <asm/smp.h> /* * Late Interrupt system init called from start_kernel for Boot CPU only * ...
arch/arc/kernel/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/jump_label.h> #include "asm/cacheflush.h" #define JUMPLABEL_ERR "ARC: jump_label: ERROR: " /* Halt system on fatal error to make debug easier */ #define arc_jl_fatal(format...) \ ({ \ pr_err(JUMPLABEL_ERR format); \ BUG...
arch/arc/kernel/jump_label.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * kgdb support for ARC * * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/kgdb.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <asm/disasm.h> #include <asm/cacheflush.h> static void to_gdb_regs(unsigned long *gdb_regs, s...
arch/arc/kernel/kgdb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/types.h> #include <linux/kprobes.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/kdebug.h> #include <linux/sched.h> #include <linux/uaccess.h> #include <asm...
arch/arc/kernel/kprobes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARC ARConnect (MultiCore IP) support (formerly known as MCIP) * * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) */ #include <linux/smp.h> #include <linux/irq.h> #include <linux/irqchip/chained_irq.h> #include <linux/spinlock.h> #include <soc/arc/mcip.h> #include...
arch/arc/kernel/mcip.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/module.h> #include <linux/moduleloader.h> #include <linux/kernel.h> #include <linux/elf.h> #include <linux/vmalloc.h> #include <linux/slab.h> #include <linux/fs.h> #include <lin...
arch/arc/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ // // Linux performance counter support for ARC CPUs. // This code is inspired by the perf support of various other architectures. // // Copyright (C) 2013-2018 Synopsys, Inc. (www.synopsys.com) #include <linux/errno.h> #include <linux/interrupt.h> #include <linux/module.h> #includ...
arch/arc/kernel/perf_event.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Amit Bhor, Kanika Nema: Codito Technologies 2004 */ #include <linux/errno.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/sched/task.h> #include <linux/sched/task_stack...
arch/arc/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/ptrace.h> #include <linux/sched/task_stack.h> #include <linux/regset.h> #include <linux/unistd.h> #include <linux/elf.h> #define CREATE_TRACE_POINTS #include <trace/events/sysc...
arch/arc/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/kernel.h> #include <linux/printk.h> #include <linux/reboot.h> #include <linux/pm.h> void machine_halt(void) { /* Halt the processor */ __asm__ __volatile__("flag 1\n"); } void machine_resta...
arch/arc/kernel/reset.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/seq_file.h> #include <linux/fs.h> #include <linux/delay.h> #include <linux/root_dev.h> #include <linux/clk.h> #include <linux/clocksource.h> #include <linux/console.h> #include ...
arch/arc/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Signal Handling for ARC * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: Jan 2010 (Restarting of timer related syscalls) * * vineetg: Nov 2009 (Everything needed for TIF_RESTORE_SIGMASK) * -do_signal() supports TIF_RESTORE...
arch/arc/kernel/signal.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * RajeshwarR: Dec 11, 2007 * -- Added support for Inter Processor Interrupts * * Vineetg: Nov 1st, 2007 * -- Initial Write (Borrowed heavily from ARM) */ #include <linux/spinlock.h> #...
arch/arc/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * stacktrace.c : stacktracing APIs needed by rest of kernel * (wrappers over ARC dwarf based unwinder) * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: aug 2009 * -Implemented CONFIG_STACKTRACE APIs, primarily save_stack_t...
arch/arc/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/unistd.h> #include <asm/syscalls.h> #define sys_clone sys_clone_wrapper #define sys_clone3 sys_clone3_wrapper #define sys_mmap2 sys_mmap_pgoff #define __SYSCALL(nr, call) [nr] = (call), #define __SYSCALL_WITH_C...
arch/arc/kernel/sys.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Traps/Non-MMU Exception handling for ARC * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: May 2011 * -user-space unaligned access emulation * * Rahul Trivedi: Codito Technologies 2004 */ #include <linux/sched/signal.h> #...
arch/arc/kernel/traps.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/ptrace.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/kdev_t.h> #include <linux/proc_fs.h> #include <linux/file.h> #include <linux/sche...
arch/arc/kernel/troubleshoot.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2011-2012 Synopsys (www.synopsys.com) * * vineetg : May 2011 * -Adapted (from .26 to .35) * -original contribution by Tim.yao@amlogic.com */ #include <linux/types.h> #include <linux/perf_event.h> #include <linux/ptrace.h> #include <linux/uaccess.h> #i...
arch/arc/kernel/unaligned.c
null
null
null
null
null
source
linux
struct pt_regs; struct callee_regs; #ifdef CONFIG_ARC_EMUL_UNALIGNED int misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs); #else static inline int misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs) { /* Not fixed */ return 1; } #...
arch/arc/kernel/unaligned.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2002-2006 Novell, Inc. * Jan Beulich <jbeulich@novell.com> * * A simple API for unwinding kernel stacks. This is used for * debugging and error reporting purposes. The kernel doesn'...
arch/arc/kernel/unwind.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <asm-generic/vmlinux.lds.h> #include <asm/cache.h> #include <asm/page.h> #include <asm/thread_info.h> OUTPUT_ARCH(arc) ENTRY(res_service) #ifdef CONFIG_CPU_BIG_ENDIAN jiffies = ji...
arch/arc/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> #ifdef __LITTLE_ENDIAN__ #define WORD2 r2 #define SHIFT r3 #else /* BIG ENDIAN */ #define WORD2 r3 #define SHIFT r2 #endif ENTRY_CFI(memcmp) or r12,r0,r1 asl_s...
arch/arc/lib/memcmp.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> ENTRY_CFI(memcpy) or r3,r0,r1 asl_s r3,r3,30 mov_s r5,r0 brls.d r2,r3,.Lcopy_bytewise sub.f r3,r2,1 ld_s r12,[r1,0] asr.f lp_count,r3,3 bbit0.d r3,2,.Lnox...
arch/arc/lib/memcpy-700.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ /* * ARCv2 memcpy implementation optimized for unaligned memory access using. * * Copyright (C) 2019 Synopsys * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> */ #include <linux/linkage.h> #ifdef CONFIG_ARC_HAS_LL64 # define LOADX(DST,RX) ldd.ab DST, [RX, 8] # def...
arch/arc/lib/memcpy-archs-unaligned.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> #ifdef __LITTLE_ENDIAN__ # define SHIFT_1(RX,RY,IMM) asl RX, RY, IMM ; << # define SHIFT_2(RX,RY,IMM) lsr RX, RY, IMM ; >> # define MERGE_1(RX,RY,IMM) asl RX, RY, IMM # define MERGE...
arch/arc/lib/memcpy-archs.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> #include <asm/cache.h> /* * The memset implementation below is optimized to use prefetchw and prealloc * instruction in case of CPU with 64B L1 data cache line (L1_CACHE_SHIFT == ...
arch/arc/lib/memset-archs.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> #define SMALL 7 /* Must be at least 6 to deal with alignment/loop issues. */ ENTRY_CFI(memset) mov_s r4,r0 or r12,r0,r2 bmsk.f r12,r12,1 extb_s r1,r1 asl r...
arch/arc/lib/memset.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ /* ARC700 has a relatively long pipeline and branch prediction, so we want to avoid branches that are hard to predict. On the other hand, the presence of the norm instruction makes it...
arch/arc/lib/strchr-700.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> ENTRY_CFI(strcmp) or r2, r0, r1 bmsk_s r2, r2, 1 brne r2, 0, @.Lcharloop ;;; s1 and s2 are word aligned ld.ab r2, [r0, 4] mov_s r12, 0x01010101 ror r11, r12 .align 4 .Lwor...
arch/arc/lib/strcmp-archs.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ /* This is optimized primarily for the ARC700. It would be possible to speed up the loops by one cycle / word respective one cycle / byte by forcing double source 1 alignment, unrollin...
arch/arc/lib/strcmp.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ /* If dst and src are 4 byte aligned, copy 8 bytes at a time. If the src is 4, but not 8 byte aligned, we first read 4 bytes to get it 8 byte aligned. Thus, we can do a little read-ah...
arch/arc/lib/strcpy-700.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/linkage.h> ENTRY_CFI(strlen) or r3,r0,7 ld r2,[r3,-7] ld.a r6,[r3,-3] mov r4,0x01010101 ; uses long immediate #ifdef __LITTLE_ENDIAN__ asl_s r1,r0,3 btst_s r0,2 asl ...
arch/arc/lib/strlen.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARC Cache Management * * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/module.h> #include <linux/mm.h> #include <linux/sched.h> #include <linux/cache.h> #include ...
arch/arc/mm/cache.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/dma-map-ops.h> #include <asm/cache.h> #include <asm/cacheflush.h> /* * ARCH specific callbacks for generic noncoherent DMA ops * - hardware IOC not available (or "dma-cohere...
arch/arc/mm/dma.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Borrowed heavily from MIPS */ #include <linux/export.h> #include <linux/extable.h> #include <linux/uaccess.h> int fixup_exception(struct pt_regs *regs) { const struct exception_table_entry...
arch/arc/mm/extable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* Page Fault Handling for ARC (TLB Miss / ProtV) * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/signal.h> #include <linux/interrupt.h> #include <linux/sched/signal.h> #include <linux/errno.h> #include <linux/ptrace.h> #incl...
arch/arc/mm/fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2015 Synopsys, Inc. (www.synopsys.com) */ #include <linux/memblock.h> #include <linux/export.h> #include <linux/highmem.h> #include <linux/pgtable.h> #include <asm/processor.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> /* * HIGHMEM API: * * kma...
arch/arc/mm/highmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/kernel.h> #include <linux/mm.h> #include <linux/memblock.h> #ifdef CONFIG_BLK_DEV_INITRD #include <linux/initrd.h> #endif #include <linux/of_fdt.h> #include <linux/swap.h> #incl...
arch/arc/mm/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/vmalloc.h> #include <linux/init.h> #include <linux/module.h> #include <linux/io.h> #include <linux/mm.h> #include <linux/cache.h> static inline bool arc_uncached_addr_space(phy...
arch/arc/mm/ioremap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARC700 mmap * * (started from arm version - for VIPT alias handling) * * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) */ #include <linux/fs.h> #include <linux/mm.h> #include <linux/mman.h> #include <linux/sched/mm.h> #include <asm/cacheflush.h> /* * Ensure...
arch/arc/mm/mmap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * TLB Management (flush/create/diagnostics) for MMUv3 and MMUv4 * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * */ #include <linux/module.h> #include <linux/bug.h> #include <linux/mm_types.h> #include <asm/arcregs.h> #include <asm/setup...
arch/arc/mm/tlb.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * TLB Exception Handling for ARC * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: April 2011 : * -MMU v1: moved out legacy code into a separate file * -MMU v3: PD{0,1} bits layout changed: They don't overlap anymore, * ...
arch/arc/mm/tlbex.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * The interface that a back-end should provide to bpf_jit_core.c. * * Copyright (c) 2024 Synopsys Inc. * Author: Shahab Vahedi <shahab@synopsys.com> */ #ifndef _ARC_BPF_JIT_H #define _ARC_BPF_JIT_H #include <linux/bpf.h> #include <linux/filter.h> /* Print debug info and...
arch/arc/net/bpf_jit.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * The ARCv2 backend of Just-In-Time compiler for eBPF bytecode. * * Copyright (c) 2024 Synopsys Inc. * Author: Shahab Vahedi <shahab@synopsys.com> */ #include <linux/bug.h> #include "bpf_jit.h" /* ARC core registers. */ enum { ARC_R_0, ARC_R_1, ARC_R_2, ARC_R_3, ARC_R_4...
arch/arc/net/bpf_jit_arcv2.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * The back-end-agnostic part of Just-In-Time compiler for eBPF bytecode. * * Copyright (c) 2024 Synopsys Inc. * Author: Shahab Vahedi <shahab@synopsys.com> */ #include <linux/bug.h> #include "bpf_jit.h" /* * Check for the return value. A pattern used often in this file. * ...
arch/arc/net/bpf_jit_core.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AXS101/AXS103 Software Development Platform * * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com) */ #include <linux/of_fdt.h> #include <linux/libfdt.h> #include <asm/asm-offsets.h> #include <asm/io.h> #include <asm/mach_desc.h> #include <soc/arc/mcip.h> #defin...
arch/arc/plat-axs10x/axs10x.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARC HSDK Platform support code * * Copyright (C) 2017 Synopsys, Inc. (www.synopsys.com) */ #include <linux/init.h> #include <linux/of_fdt.h> #include <linux/libfdt.h> #include <linux/smp.h> #include <asm/arcregs.h> #include <asm/io.h> #include <asm/mach_desc.h> int ar...
arch/arc/plat-hsdk/platform.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARC simulation Platform support code * * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) */ #include <linux/init.h> #include <asm/mach_desc.h> /*----------------------- Machine Descriptions ------------------------------ * * Machine description is simply a set ...
arch/arc/plat-sim/platform.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Abilis Systems TB10x platform initialisation * * Copyright (C) Abilis Systems 2012 * * Author: Christian Ruppert <christian.ruppert@abilis.com> */ #include <linux/init.h> #include <asm/mach_desc.h> static const char *tb10x_compat[] __initdata = { "abilis,arc-tb10x"...
arch/arc/plat-tb10x/tb10x.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/boot/bootp/init.S * * Copyright (C) 2000-2003 Russell King. * * "Header" file for splitting kernel + initrd. Note that we pass * r0 through to r3 straight through. * * This demonstrates how to append code to the start of the kernel * zImage...
arch/arm/boot/bootp/init.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .type initrd_start,#object .globl initrd_start initrd_start: .incbin INITRD .globl initrd_end initrd_end:
arch/arm/boot/bootp/initrd.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .globl kernel_start kernel_start: .incbin "arch/arm/boot/zImage" .globl kernel_end kernel_end: .align 2
arch/arm/boot/bootp/kernel.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/libfdt_env.h> #include <asm/setup.h> #include <libfdt.h> #include "misc.h" #if defined(CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND) #define do_extend_cmdline 1 #else #define do_extend_cmdline 0 #endif #define NR_BANKS 16 static int node_offset(void *fdt, const char *...
arch/arm/boot/compressed/atags_to_fdt.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/big-endian.S * * Switch CPU into big endian mode. * Author: Nicolas Pitre */ .section ".start", "ax" mrc p15, 0, r0, c1, c0, 0 @ read control reg orr r0, r0, #(1 << 7) @ enable big endian mode mcr p15, 0, r0, c1, c0, 0 @ write cont...
arch/arm/boot/compressed/big-endian.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* For __bswapsi2, __bswapdi2 */ #include "../../lib/bswapsdi2.S"
arch/arm/boot/compressed/bswapsdi2.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/assembler.h> #ifndef CONFIG_DEBUG_SEMIHOSTING #include CONFIG_DEBUG_LL_INCLUDE ENTRY(putc) addruart r1, r2, r3 #ifdef CONFIG_DEBUG_UART_FLOW_CONTROL waituartcts r3, r1 #endif waituarttxrdy r3, r1 senduart r0, r1 busyuart r3, r1 mov...
arch/arm/boot/compressed/debug.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define _LINUX_STRING_H_ #include <linux/compiler.h> /* for inline */ #include <linux/types.h> /* for size_t */ #include <linux/stddef.h> /* for NULL */ #include <linux/linkage.h> #include <asm/string.h> #include "misc.h" #define STATIC static #define STATIC_RW_DATA /* non-static p...
arch/arm/boot/compressed/decompress.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013-2017 Linaro Ltd * Authors: Roy Franz <roy.franz@linaro.org> * Ard Biesheuvel <ard.biesheuvel@linaro.org> */ #include <linux/pe.h> #include <linux/sizes.h> .macro __nop AR_CLASS( mov r0, r0 ) M_CLASS( nop.w ) .endm .macro __i...
arch/arm/boot/compressed/efi-header.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/kernel.h> #include <linux/libfdt.h> #include <linux/sizes.h> #include "misc.h" static const void *get_prop(const void *fdt, const char *node_path, const char *property, int minlen) { const void *prop; int offset, len; offset = fdt_path_offset(fdt, no...
arch/arm/boot/compressed/fdt_check_mem_start.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/head-sa1100.S * * Copyright (C) 1999 Nicolas Pitre <nico@fluxnic.net> * * SA1100 specific tweaks. This is merged into head.S by the linker. * */ #include <linux/linkage.h> #include <asm/mach-types.h> .section ".start", "ax"...
arch/arm/boot/compressed/head-sa1100.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/head-sharpsl.S * * Copyright (C) 2004-2005 Richard Purdie <rpurdie@rpsys.net> * * Sharp's bootloader doesn't pass any kind of machine ID * so we have to figure out the machine for ourselves... * * Support for Poodle, Corgi (SL-C700), She...
arch/arm/boot/compressed/head-sharpsl.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/head-xscale.S * * XScale specific tweaks. This is merged into head.S by the linker. * */ #include <linux/linkage.h> .section ".start", "ax" __XScale_start: @ Preserve r8/r7 i.e. kernel entry values @ Data cache might be a...
arch/arm/boot/compressed/head-xscale.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/boot/compressed/head.S * * Copyright (C) 1996-2002 Russell King * Copyright (C) 2004 Hyok S. Choi (MPU support) */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/v7m.h> #include "efi-header.S" #ifdef __ARMEB__ #define OF_DT_M...
arch/arm/boot/compressed/head.S
null
null
null
null
null