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 */ /* * Common arm64 stack unwinder code. * * See: arch/arm64/kernel/stacktrace.c for the reference implementation. * * Copyright (C) 2012 ARM Ltd. */ #ifndef __ASM_STACKTRACE_COMMON_H #define __ASM_STACKTRACE_COMMON_H #include <linux/types.h> struct stack_info { unsign...
arch/arm64/include/asm/stacktrace/common.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_STACKTRACE_FRAME_H #define __ASM_STACKTRACE_FRAME_H /* * - FRAME_META_TYPE_NONE * * This value is reserved. * * - FRAME_META_TYPE_FINAL * * The record is the last entry on the stack. * Unwinding should terminate successfully. * * - FRAME_META_TY...
arch/arm64/include/asm/stacktrace/frame.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * KVM nVHE hypervisor stack tracing support. * * The unwinder implementation depends on the nVHE mode: * * 1) Non-protected nVHE mode - the host can directly access the * HYP stack pages and unwind the HYP stack in EL1. This saves having * to allocate sh...
arch/arm64/include/asm/stacktrace/nvhe.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_VDSOCLOCKSOURCE_H #define __ASM_VDSOCLOCKSOURCE_H #define VDSO_ARCH_CLOCKMODES \ /* vdso clocksource for both 32 and 64bit tasks */ \ VDSO_CLOCKMODE_ARCHTIMER, \ /* vdso clocksource for 64bit tasks only */ \ VDSO_CLOCKMODE_ARCHTIMER_NOCOMPAT #endif
arch/arm64/include/asm/vdso/clocksource.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2018 ARM Limited */ #ifndef __COMPAT_BARRIER_H #define __COMPAT_BARRIER_H #ifndef __ASSEMBLER__ /* * Warning: This code is meant to be used from the compat vDSO only. */ #ifdef __arch64__ #error This header is meant to be used with from the compat vDSO only...
arch/arm64/include/asm/vdso/compat_barrier.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2018 ARM Limited */ #ifndef __ASM_VDSO_COMPAT_GETTIMEOFDAY_H #define __ASM_VDSO_COMPAT_GETTIMEOFDAY_H #ifndef __ASSEMBLER__ #include <asm/barrier.h> #include <asm/unistd_compat_32.h> #include <asm/errno.h> #include <asm/vdso/compat_barrier.h> #define VDSO_...
arch/arm64/include/asm/vdso/compat_gettimeofday.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_VDSO_GETRANDOM_H #define __ASM_VDSO_GETRANDOM_H #ifndef __ASSEMBLER__ #include <asm/unistd.h> #include <asm/vdso/vsyscall.h> #include <vdso/datapage.h> /** * getrandom_syscall - Invoke the getrandom() syscall. * @buffer: Destination buffer to fill with random b...
arch/arm64/include/asm/vdso/getrandom.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2018 ARM Limited */ #ifndef __ASM_VDSO_GETTIMEOFDAY_H #define __ASM_VDSO_GETTIMEOFDAY_H #ifdef __aarch64__ #ifndef __ASSEMBLER__ #include <asm/alternative.h> #include <asm/arch_timer.h> #include <asm/barrier.h> #include <asm/unistd.h> #include <asm/sysreg.h...
arch/arm64/include/asm/vdso/gettimeofday.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 ARM Ltd. */ #ifndef __ASM_VDSO_PROCESSOR_H #define __ASM_VDSO_PROCESSOR_H #ifndef __ASSEMBLER__ static inline void cpu_relax(void) { asm volatile("yield" ::: "memory"); } #endif /* __ASSEMBLER__ */ #endif /* __ASM_VDSO_PROCESSOR_H */
arch/arm64/include/asm/vdso/processor.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_VDSO_VSYSCALL_H #define __ASM_VDSO_VSYSCALL_H #ifndef __ASSEMBLER__ #include <vdso/datapage.h> #define VDSO_PRECISION_MASK ~(0xFF00ULL<<48) /* * Update the vDSO data page to keep in sync with kernel timekeeping. */ static __always_inline void __arch_update_vds...
arch/arm64/include/asm/vdso/vsyscall.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ARM64_XEN_EVENTS_H #define _ASM_ARM64_XEN_EVENTS_H #include <asm/ptrace.h> #include <asm/atomic.h> enum ipi_vector { XEN_PLACEHOLDER_VECTOR, /* Xen IPIs go here */ XEN_NR_IPIS, }; static inline int xen_irqs_disabled(struct pt_regs *regs) { return regs_irqs_dis...
arch/arm64/include/asm/xen/events.h
null
null
null
null
null
source
linux
#include <xen/arm/page.h> #include <asm/mmu.h> static inline bool xen_kernel_unmapped_at_usr(void) { return arm64_kernel_unmapped_at_el0(); }
arch/arm64/include/asm/xen/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_AUXVEC_H #...
arch/arm64/include/uapi/asm/auxvec.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_BITSPERLON...
arch/arm64/include/uapi/asm/bitsperlong.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_pt_regs bpf_user_pt_regs_t; #endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */
arch/arm64/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) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_BYTEORDER_...
arch/arm64/include/uapi/asm/byteorder.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_FCNTL_H #d...
arch/arm64/include/uapi/asm/fcntl.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _UAPI__ASM_HWCAP...
arch/arm64/include/uapi/asm/hwcap.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012,2013 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> * * Derived from arch/arm/include/uapi/asm/kvm.h: * Copyright (C) 2012 - Virtual Open Systems and Columbia University * Author: Christoffer Dall <c.dall@virtualopensy...
arch/arm64/include/uapi/asm/kvm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_MMAN_H #define _UAPI__ASM_MMAN_H #include <asm-generic/mman.h> #define PROT_BTI 0x10 /* BTI guarded page */ #define PROT_MTE 0x20 /* Normal Tagged mapping */ /* Override any generic PKEY permission defines */ #define PKEY_DISABLE_EXE...
arch/arm64/include/uapi/asm/mman.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_PARAM_H #d...
arch/arm64/include/uapi/asm/param.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_ARM64_PERF_REGS_H #define _ASM_ARM64_PERF_REGS_H enum perf_event_arm_regs { PERF_REG_ARM64_X0, PERF_REG_ARM64_X1, PERF_REG_ARM64_X2, PERF_REG_ARM64_X3, PERF_REG_ARM64_X4, PERF_REG_ARM64_X5, PERF_REG_ARM64_X6, PERF_REG_ARM64_X7, PERF_R...
arch/arm64/include/uapi/asm/perf_regs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_POSIX_TYPES_H #define __ASM_POSIX_TYPES_H typedef unsigned short __kernel_old_uid_t; typedef unsigned short __kernel_old_gid_t; #define __kernel_old_uid_t __kernel_old_uid_t #include <asm-generic/posix_types.h> #endif /* __ASM_POSIX_TYPES_...
arch/arm64/include/uapi/asm/posix_types.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Based on arch/arm/include/asm/ptrace.h * * Copyright (C) 1996-2003 Russell King * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with th...
arch/arm64/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Based on arch/arm/include/asm/setup.h * * Copyright (C) 1997-1999 Russell King * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with thi...
arch/arm64/include/uapi/asm/setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _UAPI__ASM_SIGCO...
arch/arm64/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_SIGNAL_H #...
arch/arm64/include/uapi/asm/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_STATFS_H #...
arch/arm64/include/uapi/asm/statfs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* Copyright (C) 2017-2018 ARM Limited */ /* * For use by other UAPI headers only. * Do not make direct use of header or its definitions. */ #ifndef _UAPI__ASM_SVE_CONTEXT_H #define _UAPI__ASM_SVE_CONTEXT_H #include <linux/types.h> #define __SVE_VQ_B...
arch/arm64/include/uapi/asm/sve_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2012 ARM Ltd. * * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _UAPI__ASM_UCONT...
arch/arm64/include/uapi/asm/ucontext.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARM64 Specific Low-Level ACPI Boot Support * * Copyright (C) 2013-2014, Linaro Ltd. * Author: Al Stone <al.stone@linaro.org> * Author: Graeme Gregory <graeme.gregory@linaro.org> * Author: Hanjun Guo <hanjun.guo@linaro.org> * Author: Tomasz Nowicki <tomasz.nowicki@l...
arch/arm64/kernel/acpi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ACPI 5.1 based NUMA setup for ARM64 * Lots of code was borrowed from arch/x86/mm/srat.c * * Copyright 2004 Andi Kleen, SuSE Labs. * Copyright (C) 2013-2016, Linaro Ltd. * Author: Hanjun Guo <hanjun.guo@linaro.org> * * Reads the ACPI SRAT table to figure out what memory ...
arch/arm64/kernel/acpi_numa.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARM64 ACPI Parking Protocol implementation * * Authors: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> * Mark Salter <msalter@redhat.com> */ #include <linux/acpi.h> #include <linux/mm.h> #include <linux/types.h> #include <asm/cpu_ops.h> struct parking_protocol_mai...
arch/arm64/kernel/acpi_parking_protocol.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * alternative runtime patching * inspired by the x86 version * * Copyright (C) 2014 ARM Ltd. */ #define pr_fmt(fmt) "alternatives: " fmt #include <linux/init.h> #include <linux/cpu.h> #include <linux/elf.h> #include <asm/cacheflush.h> #include <asm/alternative.h> #incl...
arch/arm64/kernel/alternative.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2014 ARM Limited */ #include <linux/cpu.h> #include <linux/init.h> #include <linux/list.h> #include <linux/perf_event.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/sysctl.h> #include <linux/uaccess.h> #include <asm/cpufeature.h> #inc...
arch/arm64/kernel/armv8_deprecated.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/asm-offsets.c * * Copyright (C) 1995-2003 Russell King * 2001-2002 Keith Owens * Copyright (C) 2012 ARM Ltd. */ #define COMPILE_OFFSETS #include <linux/arm_sdei.h> #include <linux/sched.h> #include <linux/ftrace.h> #include <lin...
arch/arm64/kernel/asm-offsets.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARM64 cacheinfo support * * Copyright (C) 2015 ARM Ltd. * All Rights Reserved */ #include <linux/acpi.h> #include <linux/cacheinfo.h> #include <linux/of.h> #define MAX_CACHE_LEVEL 7 /* Max 7 level supported */ int cache_line_size(void) { if (coherency_max_size...
arch/arm64/kernel/cacheinfo.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only // based on arch/arm/mm/alignment.c #include <linux/compiler.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/perf_event.h> #include <linux/uaccess.h> #include <asm/exception.h> #include <asm/ptrace.h> #include <asm/traps.h> /* * ...
arch/arm64/kernel/compat_alignment.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * CPU reset routines * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2012 ARM Ltd. * Copyright (C) 2015 Huawei Futurewei Technologies. */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/assembler.h> #include <asm/sysreg.h> #incl...
arch/arm64/kernel/cpu-reset.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Contains CPU specific errata definitions * * Copyright (C) 2014 ARM Ltd. */ #include <linux/arm-smccc.h> #include <linux/types.h> #include <linux/cpu.h> #include <asm/cpu.h> #include <asm/cputype.h> #include <asm/cpufeature.h> #include <asm/kvm_asm.h> #include <asm/smp...
arch/arm64/kernel/cpu_errata.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * CPU kernel entry/exit control * * Copyright (C) 2013 ARM Ltd. */ #include <linux/acpi.h> #include <linux/cache.h> #include <linux/errno.h> #include <linux/of.h> #include <linux/string.h> #include <asm/acpi.h> #include <asm/cpu_ops.h> #include <asm/smp_plat.h> extern c...
arch/arm64/kernel/cpu_ops.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Contains CPU feature definitions * * Copyright (C) 2015 ARM Ltd. * * A note for the weary kernel hacker: the code here is confusing and hard to * follow! That's partly because it's solving a nasty problem, but also because * there's a little bit of over-abstraction t...
arch/arm64/kernel/cpufeature.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Record and handle CPU attributes. * * Copyright (C) 2014 ARM Ltd. */ #include <asm/arch_timer.h> #include <asm/cache.h> #include <asm/cpu.h> #include <asm/cputype.h> #include <asm/cpufeature.h> #include <asm/fpsimd.h> #include <linux/bitops.h> #include <linux/bug.h> #i...
arch/arm64/kernel/cpuinfo.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Routines for doing kexec-based kdump * * Copyright (C) 2017 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #include <linux/crash_dump.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/uio.h> #include <asm/memory.h> ssize_t co...
arch/arm64/kernel/crash_dump.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * ARMv8 single-step debug support and mdscr context switching. * * Copyright (C) 2012 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> */ #include <linux/cpu.h> #include <linux/debugfs.h> #include <linux/hardirq.h> #include <linux/init.h> #include <linux/ptrac...
arch/arm64/kernel/debug-monitors.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 - 2017 Linaro, Ltd. * Copyright (C) 2013, 2014 Red Hat, Inc. */ #include <linux/pe.h> #include <linux/sizes.h> .macro efi_signature_nop #ifdef CONFIG_EFI .L_head: /* * This ccmp instruction has no meaningful effect except that * its opcode f...
arch/arm64/kernel/efi-header.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> SYM_FUNC_START(__efi_rt_asm_wrapper) stp x29, x30, [sp, #-112]! mov x29, sp /* * Register x18 is designated as the 'platform' register by the AAPC...
arch/arm64/kernel/efi-rt-wrapper.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Extensible Firmware Interface * * Based on Extensible Firmware Interface Specification version 2.4 * * Copyright (C) 2013, 2014 Linaro Ltd. */ #include <linux/efi.h> #include <linux/init.h> #include <linux/kmemleak.h> #include <linux/kthread.h> #include <linux/screen...
arch/arm64/kernel/efi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/coredump.h> #include <linux/elfcore.h> #include <linux/kernel.h> #include <linux/mm.h> #include <asm/cpufeature.h> #include <asm/mte.h> #define for_each_mte_vma(cprm, i, m) \ if (system_supports_mte()) \ for (i = 0, m = cprm->vma_meta; \ i...
arch/arm64/kernel/elfcore.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Exception handling code * * Copyright (C) 2019 ARM Ltd. */ #include <linux/context_tracking.h> #include <linux/irq-entry-common.h> #include <linux/kasan.h> #include <linux/linkage.h> #include <linux/livepatch.h> #include <linux/lockdep.h> #include <linux/ptrace.h> #include ...
arch/arm64/kernel/entry-common.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * FP/SIMD state saving and restoring * * Copyright (C) 2012 ARM Ltd. * Author: Catalin Marinas <catalin.marinas@arm.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/fpsimdmacros.h> /* * Save the FP registers. * * x0 - pointer to struct...
arch/arm64/kernel/entry-fpsimd.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm64/kernel/entry-ftrace.S * * Copyright (C) 2013 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> #include <asm/ftrace.h> ...
arch/arm64/kernel/entry-ftrace.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Low-level exception handling code * * Copyright (C) 2012 ARM Ltd. * Authors: Catalin Marinas <catalin.marinas@arm.com> * Will Deacon <will.deacon@arm.com> */ #include <linux/arm-smccc.h> #include <linux/init.h> #include <linux/linkage.h> #include <asm/alternativ...
arch/arm64/kernel/entry.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * FP/SIMD context switching and fault handling * * Copyright (C) 2012 ARM Ltd. * Author: Catalin Marinas <catalin.marinas@arm.com> */ #include <linux/bitmap.h> #include <linux/bitops.h> #include <linux/bottom_half.h> #include <linux/bug.h> #include <linux/cache.h> #incl...
arch/arm64/kernel/fpsimd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm64/kernel/ftrace.c * * Copyright (C) 2013 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #include <linux/ftrace.h> #include <linux/module.h> #include <linux/swab.h> #include <linux/uaccess.h> #include <asm/cacheflush.h> #include <asm...
arch/arm64/kernel/ftrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Low-level CPU initialisation * Based on arch/arm/kernel/head.S * * Copyright (C) 1994-2002 Russell King * Copyright (C) 2003-2012 ARM Ltd. * Authors: Catalin Marinas <catalin.marinas@arm.com> * Will Deacon <will.deacon@arm.com> */ #include <linux/linkage.h> #in...
arch/arm64/kernel/head.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Hibernate low-level support * * Copyright (C) 2016 ARM Ltd. * Author: James Morse <james.morse@arm.com> */ #include <linux/linkage.h> #include <linux/errno.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> #include <asm/cputype.h> #include <asm/memory.h> #...
arch/arm64/kernel/hibernate-asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /*: * Hibernate support specific for ARM64 * * 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/arm64/kernel/hibernate.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility, * using the CPU's debug registers. * * Copyright (C) 2012 ARM Limited * Author: Will Deacon <will.deacon@arm.com> */ #define pr_fmt(fmt) "hw-breakpoint: " fmt #include <linux/compat.h> #include...
arch/arm64/kernel/hw_breakpoint.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Hypervisor stub * * Copyright (C) 2012 ARM Ltd. * Author: Marc Zyngier <marc.zyngier@arm.com> */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/el2_setup.h> #include <asm/kvm_arm.h> #include <asm/kvm_asm.h> #include <as...
arch/arm64/kernel/hyp-stub.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Low-level idle sequences */ #include <linux/cpu.h> #include <linux/irqflags.h> #include <asm/barrier.h> #include <asm/cpuidle.h> #include <asm/cpufeature.h> #include <asm/sysreg.h> /* * cpu_do_idle() * * Idle the processor (wait for interrupt). * * If the CPU supp...
arch/arm64/kernel/idle.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linker script variables to be set after section resolution, as * ld.lld does not like variables assigned before SECTIONS is processed. */ #ifndef __ARM64_KERNEL_IMAGE_VARS_H #define __ARM64_KERNEL_IMAGE_VARS_H #ifndef LINKER_SCRIPT #error This file should only be inc...
arch/arm64/kernel/image-vars.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linker script macros to generate Image header fields. * * Copyright (C) 2014 ARM Ltd. */ #ifndef __ARM64_KERNEL_IMAGE_H #define __ARM64_KERNEL_IMAGE_H #ifndef LINKER_SCRIPT #error This file should only be included in vmlinux.lds.S #endif #include <asm/image.h> /* ...
arch/arm64/kernel/image.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/io.c * * Copyright (C) 2012 ARM Ltd. */ #include <linux/export.h> #include <linux/types.h> #include <linux/io.h> /* * This generates a memcpy that works on a from/to address which is aligned to * bits. Count is in terms of the number of bits...
arch/arm64/kernel/io.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on 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 <tony...
arch/arm64/kernel/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2013 Huawei Ltd. * Author: Jiang Liu <liuj97@gmail.com> * * Based on arch/arm/kernel/jump_label.c */ #include <linux/kernel.h> #include <linux/jump_label.h> #include <linux/smp.h> #include <asm/insn.h> #include <asm/text-patching.h> bool arch_jump_label_...
arch/arm64/kernel/jump_label.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2016 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/cache.h> #include <linux/init.h> #include <linux/printk.h> #include <asm/cpufeature.h> #include <asm/memory.h> bool __ro_after_init __kaslr_is_enabled = false; void __init kaslr_init(void) { ...
arch/arm64/kernel/kaslr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Kexec image loader * Copyright (C) 2018 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #define pr_fmt(fmt) "kexec_file(Image): " fmt #include <linux/err.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/kexec.h> #include <linu...
arch/arm64/kernel/kexec_image.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AArch64 KGDB support * * Based on arch/arm/kernel/kgdb.c * * Copyright (C) 2013 Cavium Inc. * Author: Vijaya Kumar K <vijaya.kumar@caviumnetworks.com> */ #include <linux/bug.h> #include <linux/irq.h> #include <linux/kdebug.h> #include <linux/kgdb.h> #include <linux/...
arch/arm64/kernel/kgdb.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * AArch32 user helpers. * Based on the kuser helpers in arch/arm/kernel/entry-armv.S. * * Copyright (C) 2005-2011 Nicolas Pitre <nico@fluxnic.net> * Copyright (C) 2012-2018 ARM Ltd. * * The kuser helpers below are mapped at a fixed address by * aarch32_setup_additional_...
arch/arm64/kernel/kuser32.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * kexec for arm64 * * Copyright (C) Linaro. * Copyright (C) Huawei Futurewei Technologies. */ #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/kernel.h> #include <linux/kexec.h> #include <linux/page-flags.h> #include <linux/reboot.h> #include <linux/s...
arch/arm64/kernel/machine_kexec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * kexec_file for arm64 * * Copyright (C) 2018 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> * * Most code is derived from arm64 port of kexec-tools */ #define pr_fmt(fmt) "kexec_file: " fmt #include <linux/ioport.h> #include <linux/kernel.h> #inclu...
arch/arm64/kernel/machine_kexec_file.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/moduleloader.h> #include <linux/sort.h> static struct plt_entry __get_adrp_add_pair(u6...
arch/arm64/kernel/module-plts.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AArch64 loadable module support. * * Copyright (C) 2012 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> */ #define pr_fmt(fmt) "Modules: " fmt #include <linux/bitops.h> #include <linux/elf.h> #include <linux/ftrace.h> #include <linux/kasan.h> #include <lin...
arch/arm64/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2020 ARM Ltd. */ #include <linux/bitops.h> #include <linux/cpu.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/prctl.h> #include <linux/sched.h> #include <linux/sched/mm.h> #include <linux/string.h> #include <linux/swap.h> #include <linux...
arch/arm64/kernel/mte.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2013 Citrix Systems * * Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com> */ #define pr_fmt(fmt) "arm-pv: " fmt #include <linux/arm-smccc.h> #include <linux/cpuhotplug.h> #include <linux/export.h> #include <linux/io.h> #include <linux/jump...
arch/arm64/kernel/paravirt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/kernel.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/spinlock.h> #include <linux/stop_machine.h> #include <linux/uaccess.h> #include <asm/cacheflush.h> #include <asm/fixmap.h> #include <asm/insn.h> #include <asm/kprobes.h> #include <asm/text-pa...
arch/arm64/kernel/patching.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Code borrowed from powerpc/kernel/pci-common.c * * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM * Copyright (C) 2014 ARM Ltd. */ #include <linux/pci.h> /* * raw_pci_read/write - Platform-specific PCI config space access. */ int raw_pci_read(unsigned i...
arch/arm64/kernel/pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arm64 callchain support * * Copyright (C) 2015 ARM Limited */ #include <linux/perf_event.h> #include <linux/stacktrace.h> #include <linux/uaccess.h> #include <asm/pointer_auth.h> static bool callchain_trace(void *data, unsigned long pc) { struct perf_callchain_entry_...
arch/arm64/kernel/perf_callchain.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/compat.h> #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> static u64 perf_ext_regs_value(int idx) { switch (idx) { case P...
arch/arm64/kernel/perf_regs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/compat.h> #include <linux/errno.h> #include <linux/prctl.h> #include <linux/random.h> #include <linux/sched.h> #include <asm/cpufeature.h> #include <asm/pointer_auth.h> int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg) { struct ptrauth_keys_u...
arch/arm64/kernel/pointer_auth.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/process.c * * Original Copyright (C) 1995 Linus Torvalds * Copyright (C) 1996-2000 Russell King - Converted to ARM. * Copyright (C) 2012 ARM Ltd. */ #include <linux/compat.h> #include <linux/efi.h> #include <linux/elf.h> #include <linux/expor...
arch/arm64/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Handle detection, reporting and mitigation of Spectre v1, v2, v3a and v4, as * detailed at: * * https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability * * This code was originally written hastily under an awful lot of stress and s...
arch/arm64/kernel/proton-pack.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2013 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> */ #define pr_fmt(fmt) "psci: " fmt #include <linux/init.h> #include <linux/of.h> #include <linux/smp.h> #include <linux/delay.h> #include <linux/psci.h> #include <linux/mm.h> #include <u...
arch/arm64/kernel/psci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/ptrace.c * * By Ross Biro 1/23/92 * edited by Linus Torvalds * ARM modifications Copyright (C) 2000 Russell King * Copyright (C) 2012 ARM Ltd. */ #include <linux/audit.h> #include <linux/compat.h> #include <linux/kernel.h> #include <linux/sc...
arch/arm64/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2017 Linaro, Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/module.h> int sym64_rel; #define SYM64_ABS_VAL 0xffff880000cccccc #define SYM32_ABS_VAL 0xf800cccc #define SYM16_ABS_VAL 0xf8cc #define __SET_ABS(name, val) asm(".globl " #name "; .set "...
arch/arm64/kernel/reloc_test_core.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2017 Linaro, Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> SYM_FUNC_START(absolute_data64) ldr x0, 0f ret 0: .quad sym64_abs SYM_FUNC_END(absolute_data64) SYM_FUNC_START(absolute_data32) ldr w0, 0f ret 0: .long sym32_abs SYM_FUNC_E...
arch/arm64/kernel/reloc_test_syms.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * kexec for arm64 * * Copyright (C) Linaro. * Copyright (C) Huawei Futurewei Technologies. * Copyright (C) 2021, Microsoft Corporation. * Pasha Tatashin <pasha.tatashin@soleen.com> */ #include <linux/kexec.h> #include <linux/linkage.h> #include <asm/assembler.h> #...
arch/arm64/kernel/relocate_kernel.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/arm64/kernel/return_address.c * * Copyright (C) 2013 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #include <linux/export.h> #include <linux/ftrace.h> #include <linux/kprobes.h> #include <linux/stacktrace.h> #include <asm/stack_pointer...
arch/arm64/kernel/return_address.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2023 ARM Ltd. */ #include <linux/jump_label.h> #include <linux/memblock.h> #include <linux/psci.h> #include <linux/swiotlb.h> #include <linux/cc_platform.h> #include <linux/platform_device.h> #include <asm/io.h> #include <asm/mem_encrypt.h> #include <asm/r...
arch/arm64/kernel/rsi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2017 Arm Ltd. #define pr_fmt(fmt) "sdei: " fmt #include <linux/arm-smccc.h> #include <linux/arm_sdei.h> #include <linux/hardirq.h> #include <linux/irqflags.h> #include <linux/sched/task_stack.h> #include <linux/scs.h> #include <linux/uaccess.h> #include <asm/altern...
arch/arm64/kernel/sdei.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/setup.c * * Copyright (C) 1995-2001 Russell King * Copyright (C) 2012 ARM Ltd. */ #include <linux/acpi.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/stddef.h> #include <linux/ioport.h> #include <linux/delay.h> #include...
arch/arm64/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/signal.c * * Copyright (C) 1995-2009 Russell King * Copyright (C) 2012 ARM Ltd. */ #include <linux/cache.h> #include <linux/compat.h> #include <linux/errno.h> #include <linux/irq-entry-common.h> #include <linux/kernel.h> #include <linux/signal...
arch/arm64/kernel/signal.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Based on arch/arm/kernel/signal.c * * Copyright (C) 1995-2009 Russell King * Copyright (C) 2012 ARM Ltd. * Modified by Will Deacon <will.deacon@arm.com> */ #include <linux/compat.h> #include <linux/signal.h> #include <linux/syscalls.h> #include <linux/ratelimit.h> #...
arch/arm64/kernel/signal32.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * AArch32 sigreturn code. * Based on the kuser helpers in arch/arm/kernel/entry-armv.S. * * Copyright (C) 2005-2011 Nicolas Pitre <nico@fluxnic.net> * Copyright (C) 2012-2018 ARM Ltd. * * For ARM syscalls, the syscall number has to be loaded into r7. * We do not support...
arch/arm64/kernel/sigreturn32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/errno.h> #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> #include <asm/smp.h> .text /* * Implementation of MPIDR_EL1 hash algorithm through shifting * and OR'ing. * * @dst: register containing hash result * @rs0: register c...
arch/arm64/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/assembler.h> .macro SMCCC instr \instr #0 ldr x4, [sp] stp x0, x1, [x4, #ARM_SMCCC_RES_X0_OFFS] stp x2, x3, [x4, #ARM_SMCCC_R...
arch/arm64/kernel/smccc-call.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * SMP initialisation and IPI support * Based on arch/arm/kernel/smp.c * * Copyright (C) 2012 ARM Ltd. */ #include <linux/acpi.h> #include <linux/arm_sdei.h> #include <linux/delay.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/sched/mm.h> #include...
arch/arm64/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Spin Table SMP initialisation * * Copyright (C) 2013 ARM Ltd. */ #include <linux/delay.h> #include <linux/init.h> #include <linux/of.h> #include <linux/smp.h> #include <linux/types.h> #include <linux/mm.h> #include <asm/cacheflush.h> #include <asm/cpu_ops.h> #include ...
arch/arm64/kernel/smp_spin_table.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Stack tracing support * * Copyright (C) 2012 ARM Ltd. */ #include <linux/kernel.h> #include <linux/efi.h> #include <linux/export.h> #include <linux/filter.h> #include <linux/ftrace.h> #include <linux/kprobes.h> #include <linux/sched.h> #include <linux/sched/debug.h> #in...
arch/arm64/kernel/stacktrace.c
null
null
null
null
null