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 WITH Linux-syscall-note */ #ifndef _ASM_ARM_PERF_REGS_H #define _ASM_ARM_PERF_REGS_H enum perf_event_arm_regs { PERF_REG_ARM_R0, PERF_REG_ARM_R1, PERF_REG_ARM_R2, PERF_REG_ARM_R3, PERF_REG_ARM_R4, PERF_REG_ARM_R5, PERF_REG_ARM_R6, PERF_REG_ARM_R7, PERF_REG_ARM_R8, PERF_REG...
arch/arm/include/uapi/asm/perf_regs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * arch/arm/include/asm/posix_types.h * * Copyright (C) 1996-1998 Russell King. * * published by the Free Software Foundation. * * Changelog: * 27-06-1996 RMK Created */ #ifndef __ARCH_ARM_POSIX_TYPES_H #define __ARCH_ARM_POSIX_TYPES_H /* ...
arch/arm/include/uapi/asm/posix_types.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * arch/arm/include/asm/ptrace.h * * Copyright (C) 1996-2003 Russell King * * published by the Free Software Foundation. */ #ifndef _UAPI__ASM_ARM_PTRACE_H #define _UAPI__ASM_ARM_PTRACE_H #include <asm/hwcap.h> #define PTRACE_GETREGS 12 #define...
arch/arm/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * linux/include/asm/setup.h * * Copyright (C) 1997-1999 Russell King * * published by the Free Software Foundation. * * Structure passed to kernel to tell it about the * hardware it's running on. See Documentation/arch/arm/setup.rst * for ...
arch/arm/include/uapi/asm/setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASMARM_SIGCONTEXT_H #define _ASMARM_SIGCONTEXT_H /* * Signal context structure - contains all info to do with the state * before the signal handler was invoked. Note: only add new entries * to the end of the structure. */ struct sigcontext { ...
arch/arm/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASMARM_SIGNAL_H #define _UAPI_ASMARM_SIGNAL_H #include <linux/types.h> /* Avoid too many header ordering problems. */ struct siginfo; #ifndef __KERNEL__ /* Here we must cater to libcs that poke about in kernel headers. */ #define NSIG 3...
arch/arm/include/uapi/asm/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASMARM_STAT_H #define _ASMARM_STAT_H struct __old_kernel_stat { unsigned short st_dev; unsigned short st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; unsigned l...
arch/arm/include/uapi/asm/stat.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASMARM_STATFS_H #define _ASMARM_STATFS_H /* * With EABI there is 4 bytes of padding added to this structure. * Let's pack it so the padding goes away to simplify dual ABI support. * Note that user space does NOT have to pack this structure. */...
arch/arm/include/uapi/asm/statfs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * arch/arm/include/asm/byteorder.h * * ARM Endian-ness. In little endian mode, the data bus is connected such * that byte accesses appear as: * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 * and word accesses (data or instruction) app...
arch/arm/include/uapi/asm/swab.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_TYPES_H #define _UAPI_ASM_TYPES_H #include <asm-generic/int-ll64.h> /* * The C99 types uintXX_t that are usually defined in 'stdint.h' are not as * unambiguous on ARM as you would expect. For the types below, there is a * difference o...
arch/arm/include/uapi/asm/types.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * arch/arm/include/asm/unistd.h * * Copyright (C) 2001-2005 Russell King * * published by the Free Software Foundation. * * Please forward _all_ changes to this file to rmk@arm.linux.org.uk, * no matter what the change is. Thanks! */ #ifndef ...
arch/arm/include/uapi/asm/unistd.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/arch_timer.c * * Copyright (C) 2011 ARM Ltd. * All Rights Reserved */ #include <linux/init.h> #include <linux/types.h> #include <linux/errno.h> #include <asm/delay.h> #include <asm/arch_timer.h> #include <clocksource/arm_arch_timer.h> static...
arch/arm/kernel/arch_timer.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/armksyms.c * * Copyright (C) 2000 Russell King */ #include <linux/export.h> #include <linux/sched.h> #include <linux/string.h> #include <linux/delay.h> #include <linux/in6.h> #include <linux/syscalls.h> #include <linux/uaccess.h> #include <linux/...
arch/arm/kernel/armksyms.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 1995-2003 Russell King * 2001-2002 Keith Owens * * Generate definitions needed by assembly language modules. * This code generates raw asm output which is post-processed to extract * and format the required data. */ #define COMPILE_OF...
arch/arm/kernel/asm-offsets.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ void convert_to_tag_list(struct tag *tags); #ifdef CONFIG_ATAGS const struct machine_desc *setup_machine_tags(void *__atags_vaddr, unsigned int machine_nr); #else static inline const struct machine_desc * __init __noreturn setup_machine_tags(void *__atags_vaddr, unsigned int mac...
arch/arm/kernel/atags.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/atags_compat.c * * Copyright (C) 2001 Russell King * * We keep the old params compatibility cruft in one place (here) * so we don't end up with lots of mess around other places. * * NOTE: * The old struct param_struct is deprecated, but it ...
arch/arm/kernel/atags_compat.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Tag parsing. * * Copyright (C) 1995-2001 Russell King */ /* * This is the traditional way of passing data to the kernel at boot time. Rather * than passing a fixed inflexible structure to the kernel, we pass a list * of variable-sized tags to the kernel. The first...
arch/arm/kernel/atags_parse.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/slab.h> #include <linux/proc_fs.h> #include <asm/setup.h> #include <asm/types.h> #include <asm/page.h> struct buffer { size_t size; char data[] __counted_by(size); }; static ssize_t atags_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) {...
arch/arm/kernel/atags_proc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/arm/kernel/bios32.c * * PCI bios-type initialisation for PCI machines * * Bits taken from various places. */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/pci.h> #include <linux/slab.h> #include <linux/string_choices.h> #include <linux/i...
arch/arm/kernel/bios32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/init.h> #include <linux/cpu.h> #include <asm/bugs.h> #include <asm/proc-fns.h> void check_other_bugs(void) { #ifdef MULTI_CPU if (cpu_check_bugs) cpu_check_bugs(); #endif } void __init arch_cpu_finalize_init(void) { check_writebuffer_bugs(); check_other_bugs();...
arch/arm/kernel/bugs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARM cacheinfo support * * Copyright (C) 2023 Linaro Ltd. * Copyright (C) 2015 ARM Ltd. * All Rights Reserved */ #include <linux/bitfield.h> #include <linux/cacheinfo.h> #include <linux/of.h> #include <asm/cachetype.h> #include <asm/cputype.h> #include <asm/syste...
arch/arm/kernel/cacheinfo.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2012 Linaro Ltd. */ #include <linux/cpuidle.h> #include <linux/of.h> #include <asm/cpuidle.h> extern struct of_cpuidle_method __cpuidle_method_of_table[]; static const struct of_cpuidle_method __cpuidle_method_of_table_sentinel __used __section("__cpuidl...
arch/arm/kernel/cpuidle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm/kernel/crash_dump.c * * Copyright (C) 2010 Nokia Corporation. * Author: Mika Westerberg * * This code is taken from arch/x86/kernel/crash_dump_64.c * Created by: Hariprasad Nellitheertha (hari@in.ibm.com) * Copyright (C) IBM Corporation, 2004. All right...
arch/arm/kernel/crash_dump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/debug.S * * Copyright (C) 1994-1999 Russell King * * 32-bit debugging code */ #include <linux/linkage.h> #include <asm/assembler.h> .text /* * Some debugging routines (useful if you've got MM problems and * printk isn't working). For...
arch/arm/kernel/debug.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/devtree.c * * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com> */ #include <linux/init.h> #include <linux/export.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/memblock.h> #include <linux/of.h> #include <linux/...
arch/arm/kernel/devtree.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/dma.c * * Copyright (C) 1995-2000 Russell King * * Front-end to the DMA handling. This handles the allocation/freeing * of DMA channels, and provides a unified interface to the machines * DMA facilities. */ #include <linux/module.h> #incl...
arch/arm/kernel/dma.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/early_printk.c * * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de> */ #include <linux/kernel.h> #include <linux/console.h> #include <linux/init.h> #include <linux/string.h> extern void printascii(const char *); static void early_write...
arch/arm/kernel/early_printk.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/efi.h> #include <linux/memblock.h> #include <linux/screen_info.h> #include <asm/efi.h> #include <asm/mach/map.h> #include <asm/mmu_context.h> static int __init set_permissions(pte_t *ptep, uns...
arch/arm/kernel/efi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <linux/sched.h> #include <linux/personality.h> #include <linux/binfmts.h> #include <linux/elf.h> #include <linux/elf-fdpic.h> #include <asm/system_info.h> int elf_check_arch(const struct elf32_hdr *x) { unsigned int eflags; /* Make sure it's an ...
arch/arm/kernel/elf.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/entry-armv.S * * Copyright (C) 1996,1997,1998 Russell King. * ARM700 fix by Matthew Godbolt (linux-user@willothewisp.demon.co.uk) * nommu support by Hyok S. Choi (hyok.choi@samsung.com) * * Low-level vector interface routines * * Note...
arch/arm/kernel/entry-armv.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/entry-common.S * * Copyright (C) 2000 Russell King */ #include <asm/assembler.h> #include <asm/unistd.h> #include <asm/ftrace.h> #include <asm/unwind.h> #include <asm/page.h> #ifdef CONFIG_AEABI #include <asm/unistd-oabi.h> #endif .equ NR_s...
arch/arm/kernel/entry-common.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <asm/assembler.h> #include <asm/ftrace.h> #include <asm/unwind.h> #include "entry-header.S" /* * When compiling with -pg, gcc inserts a call to the mcount routine at the * start of every function. In mcount, apart from the function's address (in * lr), we need...
arch/arm/kernel/entry-ftrace.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/errno.h> #include <asm/thread_info.h> #include <asm/uaccess-asm.h> #include <asm/v7m.h> @ Bad Abort numbers @ ----------------- @ #define BAD_PREFETCH 0 #defi...
arch/arm/kernel/entry-header.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/entry-v7m.S * * Copyright (C) 2008 ARM Ltd. * * Low-level vector interface routines for the ARMv7-M architecture */ #include <asm/page.h> #include <asm/glue.h> #include <asm/thread_notify.h> #include <asm/v7m.h> #include "entry-header.S" #if...
arch/arm/kernel/entry-v7m.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/arm/kernel/fiq.c * * Copyright (C) 1998 Russell King * Copyright (C) 1998, 1999 Phil Blundell * * FIQ support written by Philip Blundell <philb@gnu.org>, 1998. * * FIQ support re-written by Russell King to be more generic * * We now properly support a m...
arch/arm/kernel/fiq.c
null
null
null
null
null
source
linux
/* * linux/arch/arm/kernel/fiqasm.S * * Derived from code originally in linux/arch/arm/kernel/fiq.c: * * Copyright (C) 1998 Russell King * Copyright (C) 1998, 1999 Phil Blundell * Copyright (C) 2011, Linaro Limited * * FIQ support written by Philip Blundell <philb@gnu.org>, 1998. * * FIQ support re-wr...
arch/arm/kernel/fiqasm.S
null
null
null
null
null
source
linux
/* * Dynamic function tracing support. * * Copyright (C) 2008 Abhishek Sagar <sagar.abhishek@gmail.com> * Copyright (C) 2010 Rabin Vincent <rabin@rab.in> * * For licencing details, see COPYING. * * Defines low-level handling of mcount calls when the kernel * is compiled with the -pg flag. When using dynamic ft...
arch/arm/kernel/ftrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/head-common.S * * Copyright (C) 1994-2002 Russell King * Copyright (c) 2003 ARM Limited * All Rights Reserved */ #include <asm/assembler.h> #define ATAG_CORE 0x54410001 #define ATAG_CORE_SIZE ((2*4 + 3*4) >> 2) #define ATAG_CORE_SIZE_EMPT...
arch/arm/kernel/head-common.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * XIP kernel .data segment decompressor * * Created by: Nicolas Pitre, August 2017 * Copyright: (C) 2017 Linaro Limited */ #include <linux/init.h> #include <linux/zutil.h> #include "head.h" /* for struct inflate_state */ #include "../../../lib/zlib_inflate/inftrees.h"...
arch/arm/kernel/head-inflate-data.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/head-nommu.S * * Copyright (C) 1994-2002 Russell King * Copyright (C) 2003-2006 Hyok S. Choi * * Common kernel startup code (non-paged MM) */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/errno.h> #include <asm/assem...
arch/arm/kernel/head-nommu.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/head.S * * Copyright (C) 1994-2002 Russell King * Copyright (c) 2003 ARM Limited * All Rights Reserved * * Kernel startup code for all 32-bit CPUs */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #includ...
arch/arm/kernel/head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only extern char __data_loc[]; extern char _edata_loc[]; extern char _sdata[]; int __init __inflate_kernel_data(void);
arch/arm/kernel/head.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Hibernation support specific for ARM * * Derived from work on ARM hibernation support by: * * Ubuntu project, hibernation support for mach-dove * Copyright (C) 2010 Nokia Corporation (Hiroshi Doyu) * Copyright (C) 2010 Texas Instruments, Inc. (Teerth Reddy et al.) *...
arch/arm/kernel/hibernate.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2009, 2010 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> */ /* * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility, * using the CPU's debug registers. */ #define pr_fmt(fmt) "hw-breakpoint: " fmt #include <linux/er...
arch/arm/kernel/hw_breakpoint.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (c) 2012 Linaro Limited. */ #include <linux/init.h> #include <linux/irqchip/arm-gic-v3.h> #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/virt.h> .arch armv7-a #ifndef ZIMAGE /* * For the kernel proper, we need to find out the CPU ...
arch/arm/kernel/hyp-stub.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/bug.h> #include <linux/kernel.h> #include <asm/opcodes.h> static unsigned long __arm_gen_branch_thumb2(unsigned long pc, unsigned long addr, bool link, bool warn) { unsigned long s, j1, j2, i1, i2, imm10, imm11; unsigned long first, second; lon...
arch/arm/kernel/insn.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <linux/types.h> #include <linux/io.h> #include <linux/spinlock.h> static DEFINE_RAW_SPINLOCK(__io_lock); /* * Generic atomic MMIO modify. * * Allows thread-safe access to registers shared by unrelated subsystems. * The access is protected by a...
arch/arm/kernel/io.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/irq.c * * Copyright (C) 1992 Linus Torvalds * Modifications for ARM processor Copyright (C) 1995-2000 Russell King. * * Support for Dynamic Tick Timer Copyright (C) 2004-2005 Nokia Corporation. * Dynamic Tick Timer written by Tony Lindgren ...
arch/arm/kernel/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * linux/arch/arm/kernel/isa.c * * Copyright (C) 1999 Phil Blundell * * ISA shared memory and I/O port support, and is required to support * iopl, inb, outb and friends in userspace via glibc emulation. */ #include <linux/stddef.h> #include <linux/types.h> #incl...
arch/arm/kernel/isa.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/kernel/iwmmxt.S * * XScale iWMMXt (Concan) context switching and handling * * Initial code: * Copyright (c) 2003, Intel Corporation * * Full lazy switching support, optimizations and more, by Nicolas Pitre * Copyright (c) 2003-2004, MontaVis...
arch/arm/kernel/iwmmxt.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __IWMMXT_H__ #define __IWMMXT_H__ .irp b, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 .set .LwR\b, \b .set .Lr\b, \b .endr .set .LwCSSF, 0x2 .set .LwCASF, 0x3 .set .LwCGR0, 0x8 .set .LwCGR1, 0x9 .set .LwCGR2, 0xa .set .LwCGR3, 0xb .macro wldrd, reg:req, base:r...
arch/arm/kernel/iwmmxt.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/jump_label.h> #include <asm/text-patching.h> #include <asm/insn.h> static void __arch_jump_label_transform(struct jump_entry *entry, enum jump_label_type type, bool is_static) { void *addr = (void *)entry->code; unsigned int insn...
arch/arm/kernel/jump_label.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/arm/kernel/kgdb.c * * ARM KGDB support * * Copyright (c) 2002-2004 MontaVista Software, Inc * Copyright (c) 2008 Wind River Systems, Inc. * * Authors: George Davis <davis_g@mvista.com> * Deepak Saxena <dsaxena@plexity.net> */ #include <linux/irq.h> #inc...
arch/arm/kernel/kgdb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * machine_kexec.c - handle transition of Linux booting another kernel */ #include <linux/mm.h> #include <linux/kexec.h> #include <linux/delay.h> #include <linux/reboot.h> #include <linux/io.h> #include <linux/irq.h> #include <linux/memblock.h> #include <linux/of_fdt.h> #include...
arch/arm/kernel/machine_kexec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2014-2017 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/elf.h> #include <linux/ftrace.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/sort.h> #include <linux/moduleloader.h> #include <asm/cache.h> #include <asm/opcodes.h...
arch/arm/kernel/module-plts.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/module.c * * Copyright (C) 2002 Russell King. * Modified for nommu by Hyok S. Choi * * Module allocation method suggested by Andi Kleen. */ #include <linux/module.h> #include <linux/moduleloader.h> #include <linux/kernel.h> #include <linux/mm...
arch/arm/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/opcodes.c * * A32 condition code lookup feature moved from nwfpe/fpopcode.c */ #include <linux/module.h> #include <asm/opcodes.h> #define ARM_OPCODE_CONDITION_UNCOND 0xf /* * condition code lookup table * index into the table is test code: E...
arch/arm/kernel/opcodes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/kprobes.h> #include <linux/mm.h> #include <linux/stop_machine.h> #include <asm/cacheflush.h> #include <asm/fixmap.h> #include <asm/smp_plat.h> #include <asm/opcodes.h> #include <asm/text-patching.h> struct patch ...
arch/arm/kernel/patch.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ARM callchain support * * Copyright (C) 2009 picoChip Designs, Ltd., Jamie Iles * Copyright (C) 2010 ARM Ltd., Will Deacon <will.deacon@arm.com> * * This code is based on the ARM OProfile backtrace code. */ #include <linux/perf_event.h> #include <linux/uaccess.h> #includ...
arch/arm/kernel/perf_callchain.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/errno.h> #include <linux/kernel.h> #include <linux/perf_event.h> #include <linux/bug.h> #include <linux/sched/task_stack.h> #include <asm/perf_regs.h> #include <asm/ptrace.h> u64 perf_reg_value(struct pt_regs *regs, int idx) { if (WARN_ON_ONCE((u32)idx >= PERF_REG_...
arch/arm/kernel/perf_regs.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 1994-2002 Russell King * Copyright (c) 2003, 2020 ARM Limited * All Rights Reserved */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/page.h> #ifdef __ARMEB__ #define LOW_OFFSET 0x4 #define HIGH_OFFSET 0...
arch/arm/kernel/phys2virt.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/process.c * * Copyright (C) 1996-2000 Russell King - Converted to ARM. * Original Copyright (C) 1995 Linus Torvalds */ #include <linux/export.h> #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/sched/task.h> #include <li...
arch/arm/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2012 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> */ #include <linux/init.h> #include <linux/smp.h> #include <linux/of.h> #include <linux/delay.h> #include <linux/psci.h> #include <uapi/linux/psci.h> #include <asm/psci.h> #include <asm/s...
arch/arm/kernel/psci_smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/ptrace.c * * By Ross Biro 1/23/92 * edited by Linus Torvalds * ARM modifications Copyright (C) 2000 Russell King */ #include <linux/kernel.h> #include <linux/sched/signal.h> #include <linux/sched/task_stack.h> #include <linux/mm.h> #include <li...
arch/arm/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 1996-2000 Russell King - Converted to ARM. * Original Copyright (C) 1995 Linus Torvalds */ #include <linux/cpu.h> #include <linux/delay.h> #include <linux/reboot.h> #include <asm/cacheflush.h> #include <asm/idmap.h> #include <asm/virt.h> #include <asm/s...
arch/arm/kernel/reboot.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef REBOOT_H #define REBOOT_H extern void call_with_stack(void (*fn)(void *), void *arg, void *sp); extern void _soft_restart(unsigned long addr, bool disable_l2); #endif
arch/arm/kernel/reboot.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * relocate_kernel.S - put the kernel image in place to boot */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/kexec.h> .align 3 /* not needed for this code, but keeps fncpy() happy */ ENTRY(relocate_new_kernel) adr r7, r...
arch/arm/kernel/relocate_kernel.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm/kernel/return_address.c * * Copyright (C) 2009 Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> * for Pengutronix */ #include <linux/export.h> #include <linux/ftrace.h> #include <linux/sched.h> #include <asm/stacktrace.h> struct return_address_data { unsi...
arch/arm/kernel/return_address.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/setup.c * * Copyright (C) 1995-2001 Russell King */ #include <linux/efi.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/stddef.h> #include <linux/ioport.h> #include <linux/delay.h> #include <linux/utsname.h> #include <linux...
arch/arm/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/signal.c * * Copyright (C) 1995-2009 Russell King */ #include <linux/errno.h> #include <linux/random.h> #include <linux/signal.h> #include <linux/personality.h> #include <linux/uaccess.h> #include <linux/resume_user_mode.h> #include <linux/uprobe...
arch/arm/kernel/signal.c
null
null
null
null
null
source
linux
#include <asm/ucontext.h> struct sigframe { struct ucontext uc; unsigned long retcode[4]; }; struct rt_sigframe { struct siginfo info; struct sigframe sig; }; extern struct page *get_signal_page(void);
arch/arm/kernel/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * sigreturn_codes.S - code sinpets for sigreturn syscalls * * Created by: Victor Kamensky, 2013-08-13 * Copyright: (C) 2013 Linaro Limited */ #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/unistd.h> /* * For ARM syscalls, we encode the sysca...
arch/arm/kernel/sigreturn_codes.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <linux/threads.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> #include <asm/glue-cache.h> #include <asm/glue-proc.h> .text /* * Implementation of MPIDR hash algorithm through shifting * and OR'ing. * * @dst: register containing...
arch/arm/kernel/sleep.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2015, Linaro Limited */ #include <linux/linkage.h> #include <linux/arm-smccc.h> #include <asm/asm-offsets.h> #include <asm/opcodes-sec.h> #include <asm/opcodes-virt.h> #include <asm/unwind.h> /* * Wrap c macros in asm macros to delay expansion until ...
arch/arm/kernel/smccc-call.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/smp.c * * Copyright (C) 2002 ARM Limited, All Rights Reserved. */ #include <linux/module.h> #include <linux/delay.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/sched/mm.h> #include <linux/sched/hotplug.h> #include <linux/...
arch/arm/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/smp_scu.c * * Copyright (C) 2002 ARM Ltd. * All Rights Reserved */ #include <linux/init.h> #include <linux/io.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> #include <asm/cacheflush.h> #include <asm/cputype.h> #define SCU_CTRL 0x00 #d...
arch/arm/kernel/smp_scu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/smp_tlb.c * * Copyright (C) 2002 ARM Limited, All Rights Reserved. */ #include <linux/preempt.h> #include <linux/smp.h> #include <linux/uaccess.h> #include <asm/smp_plat.h> #include <asm/tlbflush.h> #include <asm/mmu_context.h> /***************...
arch/arm/kernel/smp_tlb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/smp_twd.c * * Copyright (C) 2002 ARM Ltd. * All Rights Reserved */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/clk.h> #include <linux/cpu.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/err.h> #includ...
arch/arm/kernel/smp_twd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/bpf.h> #include <linux/cpu.h> #include <linux/device.h> #include <asm/spectre.h> static bool _unprivileged_ebpf_enabled(void) { #ifdef CONFIG_BPF_SYSCALL return !sysctl_unprivileged_bpf_disabled; #else return false; #endif } ssize_t cpu_show_spectre_v1(struc...
arch/arm/kernel/spectre.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/export.h> #include <linux/kprobes.h> #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/stacktrace.h> #include <asm/sections.h> #include <asm/stacktrace.h> #include <asm/traps.h> #include "reboot.h" #if defined(CONFIG_FRAME_POINTER) && !de...
arch/arm/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/mm_types.h> #include <linux/pgtable.h> #include <asm/bugs.h> #include <asm/cacheflush.h> #include <asm/idmap.h> #include <asm/page.h> #include <asm/smp_plat.h> #include <asm/suspend.h> #include...
arch/arm/kernel/suspend.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/swp_emulate.c * * Copyright (C) 2009 ARM Limited * __user_* functions adapted from include/asm/uaccess.h * * Implements emulation of the SWP/SWPB instructions using load-exclusive and * store-exclusive for processors that have them disabled...
arch/arm/kernel/swp_emulate.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/sys_arm.c * * Copyright (C) People who wrote linux/arch/i386/kernel/sys_i386.c * Copyright (C) 1995, 1996 Russell King. * * This file contains various random system calls that * have a non-standard calling sequence on the Linux/arm * plat...
arch/arm/kernel/sys_arm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm/kernel/sys_oabi-compat.c * * Compatibility wrappers for syscalls that are used from * old ABI user space binaries with an EABI kernel. * * Author: Nicolas Pitre * Created: Oct 7, 2005 * Copyright: MontaVista Software, Inc. */ #include <asm/syscalls....
arch/arm/kernel/sys_oabi-compat.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2009 ST-Ericsson AB * TCM memory handling for ARM systems * * Author: Linus Walleij <linus.walleij@stericsson.com> * Author: Rickard Andersson <rickard.andersson@stericsson.com> */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/mo...
arch/arm/kernel/tcm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm/kernel/thumbee.c * * Copyright (C) 2008 ARM Limited */ #include <linux/kernel.h> #include <linux/init.h> #include <asm/cputype.h> #include <asm/system_info.h> #include <asm/thread_notify.h> /* * Access to the ThumbEE Handler Base register */ static inline ...
arch/arm/kernel/thumbee.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/time.c * * Copyright (C) 1991, 1992, 1995 Linus Torvalds * Modifications for ARM (C) 1994-2001 Russell King * * This file contains the ARM-specific time handling details: * reading the RTC at bootup, etc... */ #include <linux/clockchips.h...
arch/arm/kernel/time.c
null
null
null
null
null
source
linux
/* * arch/arm/kernel/topology.c * * Copyright (C) 2011 Linaro Limited. * Written by: Vincent Guittot * * based on arch/sh/kernel/topology.c * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details...
arch/arm/kernel/topology.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/traps.c * * Copyright (C) 1995-2009 Russell King * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds * * 'traps.c' handles hardware exceptions after we have saved some state in * 'linux/arch/arm/lib/traps.S...
arch/arm/kernel/traps.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm/kernel/unwind.c * * Copyright (C) 2008 ARM Limited * * Stack unwinding support for ARM * * An ARM EABI version of gcc is required to generate the unwind * tables. For information about the structure of the unwind tables, * see "Exception Handling ABI for t...
arch/arm/kernel/unwind.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2013 Uwe Kleine-Koenig for Pengutronix */ #include <linux/io.h> #include <linux/reboot.h> #include <asm/barrier.h> #include <asm/v7m.h> void armv7m_restart(enum reboot_mode mode, const char *cmd) { dsb(); __raw_writel(V7M_SCB_AIRCR_VECTKEY | V7M_SCB_AIRCR...
arch/arm/kernel/v7m.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Adapted from arm64 version. * * Copyright (C) 2012 ARM Limited * Copyright (C) 2015 Mentor Graphics Corporation. */ #include <linux/cache.h> #include <linux/vdso_datastore.h> #include <linux/elf.h> #include <linux/err.h> #include <linux/kernel.h> #include <linux/mm.h>...
arch/arm/kernel/vdso.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/vmcore_info.h> void arch_crash_save_vmcoreinfo(void) { #ifdef CONFIG_ARM_LPAE VMCOREINFO_CONFIG(ARM_LPAE); #endif }
arch/arm/kernel/vmcore_info.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* ld script to make ARM Linux kernel * taken from the i386 version by Russell King * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz> */ /* No __ro_after_init data in the .rodata section - which will always be ro */ #define RO_AFTER_INIT_DATA #include <linux/sizes.h> #...
arch/arm/kernel/vmlinux-xip.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* ld script to make ARM Linux kernel * taken from the i386 version by Russell King * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz> */ #ifdef CONFIG_XIP_KERNEL #include "vmlinux-xip.lds.S" #else #include <linux/pgtable.h> #include <asm/vmlinux.lds.h> #include <asm/cac...
arch/arm/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * linux/arch/arm/kernel/xscale-cp0.c * * XScale DSP and iWMMXt coprocessor context switching and handling */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/init.h> #include <linux/io.h> #include <asm/...
arch/arm/kernel/xscale-cp0.c
null
null
null
null
null
source
linux
/* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. In...
arch/arm/lib/ashldi3.S
null
null
null
null
null
source
linux
/* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. In...
arch/arm/lib/ashrdi3.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/backtrace-clang.S * * Copyright (C) 2019 Nathan Huckleberry * */ #include <linux/kern_levels.h> #include <linux/linkage.h> #include <asm/assembler.h> .text /* fp is 0 or stack frame */ #define frame r4 #define sv_fp r5 #define sv_pc r6 #defi...
arch/arm/lib/backtrace-clang.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/backtrace.S * * Copyright (C) 1995, 1996 Russell King * * 27/03/03 Ian Molton Clean up CONFIG_CPU */ #include <linux/kern_levels.h> #include <linux/linkage.h> #include <asm/assembler.h> .text @ fp is 0 or stack frame #define frame r4 #defin...
arch/arm/lib/backtrace.S
null
null
null
null
null