repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
aixcc-public/challenge-001-exemplar-source
1,206
arch/arm/include/debug/imx.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* arch/arm/mach-imx/include/mach/debug-macro.S * * Debugging macro include header * * Copyright (C) 1994-1999 Russell King * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ #include <asm/assembler.h> #include "imx-uart.h" /* * FIXME: This is a copy of IMX...
aixcc-public/challenge-001-exemplar-source
2,092
arch/arm/include/debug/omap2plus.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Debugging macro include header * * Copyright (C) 1994-1999 Russell King * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ #include <linux/serial_reg.h> /* External port on Zoom2/3 */ #define ZOOM_UART_BASE 0x10000000 #define ZOOM_UART_VIRT 0xfa400000 ...
aixcc-public/challenge-001-exemplar-source
1,041
arch/arm/include/debug/at91.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2003-2005 SAN People * * Debugging macro include header */ #define AT91_DBGU_SR (0x14) /* Status Register */ #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ #define AT91_DBGU_TXRDY (1 << 1) /* Transmitter Ready */ #define AT91_DBGU_T...
aixcc-public/challenge-001-exemplar-source
1,162
arch/arm/include/debug/stm32.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics SA 2017 - All Rights Reserved * Author: Gerald Baeza <gerald.baeza@st.com> for STMicroelectronics. */ #ifdef CONFIG_STM32F4_DEBUG_UART #define STM32_USART_SR_OFF 0x00 #define STM32_USART_TDR_OFF 0x04 #endif #if defined(CONFIG_STM32F7_...
aixcc-public/challenge-001-exemplar-source
1,032
arch/arm/include/debug/ux500.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Debugging macro include header * * Copyright (C) 2009 ST-Ericsson */ #if CONFIG_UX500_DEBUG_UART > 2 #error Invalid Ux500 debug UART #endif /* * DEBUG_LL only works if only one SOC is built in. We don't use #else below * in order to get "__UX500_UART redefined...
aixcc-public/challenge-001-exemplar-source
1,166
arch/arm/include/debug/exynos.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. * http://www.samsung.com */ /* pull in the relevant register and map files. */ #define S3C_ADDR_BASE 0xF6000000 #define S3C_VA_UART S3C_ADDR_BASE + 0x01000000 #define EXYNOS4_PA_UART 0x13800000 #define EXYNOS5_PA_U...
aixcc-public/challenge-001-exemplar-source
6,500
arch/arm/include/debug/tegra.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2010,2011 Google, Inc. * Copyright (C) 2011-2012 NVIDIA CORPORATION. All Rights Reserved. * * Author: * Colin Cross <ccross@google.com> * Erik Gilling <konkers@google.com> * Doug Anderson <dianders@chromium.org> * Stephen Warren <swarren@nvidia.com>...
aixcc-public/challenge-001-exemplar-source
1,216
arch/arm/include/debug/vexpress.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* arch/arm/mach-realview/include/mach/debug-macro.S * * Debugging macro include header * * Copyright (C) 1994-1999 Russell King * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ #define DEBUG_LL_PHYS_BASE 0x10000000 #define DEBUG_LL_UART_OFFSET 0x00009000...
aixcc-public/challenge-001-exemplar-source
3,677
arch/arm64/xen/hypercall.S
/****************************************************************************** * hypercall.S * * Xen hypercall wrappers * * Stefano Stabellini <stefano.stabellini@eu.citrix.com>, Citrix, 2012 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public...
aixcc-public/challenge-001-exemplar-source
24,130
arch/arm64/kernel/head.S
/* 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...
aixcc-public/challenge-001-exemplar-source
5,118
arch/arm64/kernel/efi-header.S
/* 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...
aixcc-public/challenge-001-exemplar-source
28,951
arch/arm64/kernel/entry.S
/* 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...
aixcc-public/challenge-001-exemplar-source
2,274
arch/arm64/kernel/entry-fpsimd.S
/* 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...
aixcc-public/challenge-001-exemplar-source
9,371
arch/arm64/kernel/entry-ftrace.S
/* 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> ...
aixcc-public/challenge-001-exemplar-source
1,348
arch/arm64/kernel/sigreturn32.S
/* 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...
aixcc-public/challenge-001-exemplar-source
3,094
arch/arm64/kernel/relocate_kernel.S
/* 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> #...
aixcc-public/challenge-001-exemplar-source
1,889
arch/arm64/kernel/kuser32.S
/* 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_...
aixcc-public/challenge-001-exemplar-source
1,393
arch/arm64/kernel/cpu-reset.S
/* 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...
aixcc-public/challenge-001-exemplar-source
2,092
arch/arm64/kernel/efi-rt-wrapper.S
/* 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...
aixcc-public/challenge-001-exemplar-source
3,864
arch/arm64/kernel/smccc-call.S
/* 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> #include <asm/thread_info.h> /* * If we have SMCCC v1.3 and (as is likely) no SVE state in * the registers then set...
aixcc-public/challenge-001-exemplar-source
1,510
arch/arm64/kernel/efi-entry.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * EFI entry point. * * Copyright (C) 2013, 2014 Red Hat, Inc. * Author: Mark Salter <msalter@redhat.com> */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> __INIT SYM_CODE_START(efi_enter_kernel) /* * efi_pe_entry() will have copie...
aixcc-public/challenge-001-exemplar-source
1,582
arch/arm64/kernel/reloc_test_syms.S
/* 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...
aixcc-public/challenge-001-exemplar-source
2,904
arch/arm64/kernel/hibernate-asm.S
/* 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> #...
aixcc-public/challenge-001-exemplar-source
8,847
arch/arm64/kernel/vmlinux.lds.S
/* 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> */ #include <asm/hyp_image.h> #ifdef CONFIG_KVM #define HYPERVISOR_EXTABLE \ . = ALIGN(SZ_8); \ __start___kvm_ex_table = .; ...
aixcc-public/challenge-001-exemplar-source
4,661
arch/arm64/kernel/sleep.S
/* 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...
aixcc-public/challenge-001-exemplar-source
7,321
arch/arm64/kernel/hyp-stub.S
/* 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...
aixcc-public/challenge-001-exemplar-source
6,630
arch/arm64/crypto/sha512-ce-core.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * sha512-ce-core.S - core SHA-384/SHA-512 transform using v8 Crypto Extensions * * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ver...
aixcc-public/challenge-001-exemplar-source
15,378
arch/arm64/crypto/sm4-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM4 Cipher Algorithm for ARMv8 with Crypto Extensions * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (C) 2022, Alibaba Group. * Copyright (C) 2022 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ #include <linux/li...
aixcc-public/challenge-001-exemplar-source
3,189
arch/arm64/crypto/sha1-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * sha1-ce-core.S - SHA-1 secure hash using ARMv8 Crypto Extensions * * Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a+crypto k0 .req v0 k1 .req v1 k2 .req v2 k3 .req v...
aixcc-public/challenge-001-exemplar-source
15,473
arch/arm64/crypto/sm4-neon-core.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM4 Cipher Algorithm for ARMv8 NEON * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (C) 2022, Alibaba Group. * Copyright (C) 2022 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ #include <linux/linkage.h> #include ...
aixcc-public/challenge-001-exemplar-source
6,227
arch/arm64/crypto/sha3-ce-core.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * sha3-ce-core.S - core SHA-3 transform using v8.2 Crypto Extensions * * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as ...
aixcc-public/challenge-001-exemplar-source
5,964
arch/arm64/crypto/aes-ce-ccm-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * aesce-ccm-core.S - AES-CCM transform for ARMv8 with Crypto Extensions * * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a+crypto /* * u32 ce_aes_ccm_auth_data(u8 mac...
aixcc-public/challenge-001-exemplar-source
21,814
arch/arm64/crypto/aes-modes.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm64/crypto/aes-modes.S - chaining mode wrappers for AES * * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ /* included by aes-ce.S and aes-neon.S */ .text .align 4 #ifndef MAX_STRIDE #define MAX_STRIDE 4 #endif #if MAX_STRIDE ...
aixcc-public/challenge-001-exemplar-source
10,267
arch/arm64/crypto/polyval-ce-core.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Implementation of POLYVAL using ARMv8 Crypto Extensions. * * Copyright 2021 Google LLC */ /* * This is an efficient implementation of POLYVAL using ARMv8 Crypto Extensions * It works on 8 blocks at a time, by precomputing the first 8 keys powers h^8, * ..., h^1 in the ...
aixcc-public/challenge-001-exemplar-source
3,809
arch/arm64/crypto/aes-ce.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm64/crypto/aes-ce.S - AES cipher for ARMv8 with * Crypto Extensions * * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #define AES_FUNC_START...
aixcc-public/challenge-001-exemplar-source
17,570
arch/arm64/crypto/ghash-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Accelerated GHASH implementation with ARMv8 PMULL instructions. * * Copyright (C) 2014 - 2018 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/assembler.h> SHASH .req v0 SHASH2 .req v1 T1 .req v2...
aixcc-public/challenge-001-exemplar-source
22,211
arch/arm64/crypto/aes-neonbs-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Bit sliced AES using NEON instructions * * Copyright (C) 2016 Linaro Ltd <ard.biesheuvel@linaro.org> */ /* * The algorithm implemented here is described in detail by the paper * 'Faster and Timing-Attack Resistant AES-GCM' by Emilia Kaesper and * Peter Schwabe (h...
aixcc-public/challenge-001-exemplar-source
7,624
arch/arm64/crypto/aes-neon.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm64/crypto/aes-neon.S - AES cipher for ARMv8 NEON * * Copyright (C) 2013 - 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #define AES_FUNC_START(func) SYM_FUNC_START(neon_ ## func) #define AES_FUN...
aixcc-public/challenge-001-exemplar-source
3,851
arch/arm64/crypto/sha2-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * sha2-ce-core.S - core SHA-224/SHA-256 transform using v8 Crypto Extensions * * Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a+crypto dga .req q20 dgav .req v20 dgb .re...
aixcc-public/challenge-001-exemplar-source
19,011
arch/arm64/crypto/chacha-neon-core.S
/* * ChaCha/XChaCha NEON helper functions * * Copyright (C) 2016-2018 Linaro, Ltd. <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Originally...
aixcc-public/challenge-001-exemplar-source
2,173
arch/arm64/crypto/nh-neon-core.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * NH - ε-almost-universal hash function, ARM64 NEON accelerated version * * Copyright 2018 Google LLC * * Author: Eric Biggers <ebiggers@google.com> */ #include <linux/linkage.h> KEY .req x0 MESSAGE .req x1 MESSAGE_LEN .req x2 HASH .req x3 PASS0_SUMS .req v0 P...
aixcc-public/challenge-001-exemplar-source
22,048
arch/arm64/crypto/sm3-neon-core.S
// SPDX-License-Identifier: GPL-2.0-or-later /* * sm3-neon-core.S - SM3 secure hash using NEON instructions * * Linux/arm64 port of the libgcrypt SM3 implementation for AArch64 * * Copyright (C) 2021 Jussi Kivilinna <jussi.kivilinna@iki.fi> * Copyright (c) 2022 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ ...
aixcc-public/challenge-001-exemplar-source
1,715
arch/arm64/crypto/aes-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .arch armv8-a+crypto SYM_FUNC_START(__aes_ce_encrypt) sub w3, w3, #2 ld1 {v0.16b}, [x2] ld1 {v1.4s}, [x0], #16 cmp w3, #10 bmi 0f b...
aixcc-public/challenge-001-exemplar-source
16,176
arch/arm64/crypto/crct10dif-ce-core.S
// // Accelerated CRC-T10DIF using arm64 NEON and Crypto Extensions instructions // // Copyright (C) 2016 Linaro Ltd <ard.biesheuvel@linaro.org> // Copyright (C) 2019 Google LLC <ebiggers@google.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Publ...
aixcc-public/challenge-001-exemplar-source
3,341
arch/arm64/crypto/aes-cipher-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Scalar AES core transform * * Copyright (C) 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/cache.h> .text rk .req x0 out .req x1 in .req x2 rounds .req x3 tt .req x2 .macro __pair1, ...
aixcc-public/challenge-001-exemplar-source
3,311
arch/arm64/crypto/sm3-ce-core.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * sm3-ce-core.S - SM3 secure hash using ARMv8.2 Crypto Extensions * * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/assembler.h> .irp b, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ....
aixcc-public/challenge-001-exemplar-source
1,394
arch/arm64/lib/copy_to_user.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 ARM Ltd. */ #include <linux/linkage.h> #include <asm/asm-uaccess.h> #include <asm/assembler.h> #include <asm/cache.h> /* * Copy to user space from a kernel buffer (alignment handled by the hardware) * * Parameters: * x0 - to * x1 - from * x2...
aixcc-public/challenge-001-exemplar-source
1,206
arch/arm64/lib/clear_user.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2021 Arm Ltd. */ #include <linux/linkage.h> #include <asm/asm-uaccess.h> .text /* Prototype: int __arch_clear_user(void *addr, size_t sz) * Purpose : clear some user memory * Params : addr - user memory address to clear * : sz - numbe...
aixcc-public/challenge-001-exemplar-source
4,034
arch/arm64/lib/copy_template.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 ARM Ltd. * Copyright (C) 2013 Linaro. * * This code is based on glibc cortex strings work originally authored by Linaro * be found @ * * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ * files/head:/src/aarch64/ */ /*...
aixcc-public/challenge-001-exemplar-source
5,912
arch/arm64/lib/memcpy.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2012-2021, Arm Limited. * * Adapted from the original at: * https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d9229/string/aarch64/memcpy.S */ #include <linux/linkage.h> #include <asm/assembler.h> /* Assumptions: * * ARMv8-a, AArch...
aixcc-public/challenge-001-exemplar-source
2,858
arch/arm64/lib/crc32.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Accelerated CRC32(C) using AArch64 CRC instructions * * Copyright (C) 2016 - 2018 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/assembler.h> .arch armv8-a+crc .macro byteorder, reg, be .if \be...
aixcc-public/challenge-001-exemplar-source
1,054
arch/arm64/lib/tishift.S
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) * * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include <linux/linkage.h> #include <asm/assembler.h> SYM_FUNC_START(__ashlti3) cbz x2, 1f mov x3, #64 sub x3, x3, x2 cmp x3, #0 b.le 2f lsl x1, x1, x2 lsr x3, x0,...
aixcc-public/challenge-001-exemplar-source
2,110
arch/arm64/lib/kasan_sw_tags.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Google LLC */ #include <linux/linkage.h> #include <asm/assembler.h> /* * Report a tag mismatch detected by tag-based KASAN. * * A compiler-generated thunk calls this with a non-AAPCS calling * convention. Upon entry to this function, registers ...
aixcc-public/challenge-001-exemplar-source
1,748
arch/arm64/lib/copy_page.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 ARM Ltd. */ #include <linux/linkage.h> #include <linux/const.h> #include <asm/assembler.h> #include <asm/page.h> #include <asm/cpufeature.h> #include <asm/alternative.h> /* * Copy a page from src to dest (both are page aligned) * * Parameters: ...
aixcc-public/challenge-001-exemplar-source
3,730
arch/arm64/lib/mte.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 ARM Ltd. */ #include <linux/linkage.h> #include <asm/asm-uaccess.h> #include <asm/assembler.h> #include <asm/mte.h> #include <asm/page.h> #include <asm/sysreg.h> .arch armv8.5-a+memtag /* * multitag_transfer_size - set \reg to the block size tha...
aixcc-public/challenge-001-exemplar-source
9,205
arch/arm64/lib/strncmp.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2013-2022, Arm Limited. * * Adapted from the original at: * https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b/string/aarch64/strncmp.S */ #include <linux/linkage.h> #include <asm/assembler.h> /* Assumptions: * * ARMv8-a, AArc...
aixcc-public/challenge-001-exemplar-source
4,537
arch/arm64/lib/memset.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 ARM Ltd. * Copyright (C) 2013 Linaro. * * This code is based on glibc cortex strings work originally authored by Linaro * be found @ * * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ * files/head:/src/aarch64/ */ #in...
aixcc-public/challenge-001-exemplar-source
1,407
arch/arm64/lib/copy_from_user.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 ARM Ltd. */ #include <linux/linkage.h> #include <asm/asm-uaccess.h> #include <asm/assembler.h> #include <asm/cache.h> /* * Copy from user space to a kernel buffer (alignment handled by the hardware) * * Parameters: * x0 - to * x1 - from * x2...
aixcc-public/challenge-001-exemplar-source
1,411
arch/arm64/lib/memchr.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2021 Arm Ltd. */ #include <linux/linkage.h> #include <asm/assembler.h> /* * Find a character in an area of memory. * * Parameters: * x0 - buf * x1 - c * x2 - n * Returns: * x0 - address of first occurrence of 'c' or 0 */ #define L(label) .L ##...
aixcc-public/challenge-001-exemplar-source
2,951
arch/arm64/lib/memcmp.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2013-2021, Arm Limited. * * Adapted from the original at: * https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecb/string/aarch64/memcmp.S */ #include <linux/linkage.h> #include <asm/assembler.h> /* Assumptions: * * ARMv8-a, AArch...
aixcc-public/challenge-001-exemplar-source
6,353
arch/arm64/lib/strlen.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2013-2021, Arm Limited. * * Adapted from the original at: * https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e54/string/aarch64/strlen.S */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/mte-def.h> /* Assumpti...
aixcc-public/challenge-001-exemplar-source
4,252
arch/arm64/lib/strnlen.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 ARM Ltd. * Copyright (C) 2013 Linaro. * * This code is based on glibc cortex strings work originally authored by Linaro * be found @ * * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ * files/head:/src/aarch64/ */ #in...
aixcc-public/challenge-001-exemplar-source
4,345
arch/arm64/lib/strcmp.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2012-2022, Arm Limited. * * Adapted from the original at: * https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b/string/aarch64/strcmp.S */ #include <linux/linkage.h> #include <asm/assembler.h> /* Assumptions: * * ARMv8-a, AArch...
aixcc-public/challenge-001-exemplar-source
5,079
arch/arm64/mm/cache.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Cache maintenance * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2012 ARM Ltd. */ #include <linux/errno.h> #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/cpufeature.h> #include <asm/alternative.h> #inclu...
aixcc-public/challenge-001-exemplar-source
11,084
arch/arm64/mm/proc.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Based on arch/arm/mm/proc.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2012 ARM Ltd. * Author: Catalin Marinas <catalin.marinas@arm.com> */ #include <linux/init.h> #include <linux/linkage.h> #include <linux/pgtable.h> #include <linux/cfi_types...
aixcc-public/challenge-001-exemplar-source
1,939
arch/arm64/mm/trans_pgd-asm.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, Microsoft Corporation. * Pasha Tatashin <pasha.tatashin@soleen.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/kvm_asm.h> .macro invalid_vector label SYM_CODE_START_LOCAL(\label) .align 7 b \label SYM_CODE_END(\labe...
aixcc-public/challenge-001-exemplar-source
1,850
arch/arm64/kernel/vdso32/vdso.lds.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Adapted from arm64 version. * * GNU linker script for the VDSO library. * Heavily based on the vDSO linker scripts for other archs. * * Copyright (C) 2012-2018 ARM Limited */ #include <linux/const.h> #include <asm/page.h> #include <asm/vdso.h> #include <asm-generic/vm...
aixcc-public/challenge-001-exemplar-source
2,349
arch/arm64/kernel/vdso/vdso.lds.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * GNU linker script for the VDSO library. * * Copyright (C) 2012 ARM Limited * * Author: Will Deacon <will.deacon@arm.com> * Heavily based on the vDSO linker scripts for other archs. */ #include <linux/const.h> #include <asm/page.h> #include <asm/vdso.h> #include <a...
aixcc-public/challenge-001-exemplar-source
3,040
arch/arm64/kernel/vdso/sigreturn.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Sigreturn trampoline for returning from a signal when the SA_RESTORER * flag is not set. It serves primarily as a hall of shame for crappy * unwinders and features an exciting but mysterious NOP instruction. * * It's also fragile as hell, so please think twice befor...
aixcc-public/challenge-001-exemplar-source
1,852
arch/arm64/kernel/probes/kprobes_trampoline.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * trampoline entry and return code for kretprobes. */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> .text .macro save_all_base_regs stp x0, x1, [sp, #S_X0] stp x2, x3, [sp, #S_X2] stp x4, x5, [sp, #S_X4] stp x6, x7, [sp, #S_X6] s...
aixcc-public/challenge-001-exemplar-source
5,939
arch/arm64/kvm/hyp/entry.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> */ #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/assembler.h> #include <asm/fpsimdmacros.h> #include <asm/kvm.h> #include <asm/kvm_arm.h> #include <asm/kvm_asm.h> #inc...
aixcc-public/challenge-001-exemplar-source
5,814
arch/arm64/kvm/hyp/hyp-entry.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015-2018 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> */ #include <linux/arm-smccc.h> #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/assembler.h> #include <asm/cpufeature.h> #include <asm/kvm_arm.h> #include <asm/kvm_...
aixcc-public/challenge-001-exemplar-source
5,700
arch/arm64/kvm/hyp/nvhe/hyp-init.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012,2013 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> */ #include <linux/arm-smccc.h> #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/assembler.h> #include <asm/el2_setup.h> #include <asm/kvm_arm.h> #include <asm/kvm_a...
aixcc-public/challenge-001-exemplar-source
7,197
arch/arm64/kvm/hyp/nvhe/host.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 - Google Inc * Author: Andrew Scull <ascull@google.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/kvm_arm.h> #include <asm/kvm_asm.h> #include <asm/kvm_mmu.h> .text SYM_FUNC_START(__host_exit) get_host_ctxt x0, x1 ...
aixcc-public/challenge-001-exemplar-source
7,159
arch/xtensa/kernel/head.S
/* * arch/xtensa/kernel/head.S * * Xtensa Processor startup code. * * 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. * * Copyright (C) 2001 - 2008 Tensilica Inc. * * Chris Zankel <chris@za...
aixcc-public/challenge-001-exemplar-source
22,407
arch/xtensa/kernel/vectors.S
/* * arch/xtensa/kernel/vectors.S * * This file contains all exception vectors (user, kernel, and double), * as well as the window vectors (overflow and underflow), and the debug * vector. These are the primary vectors executed by the processor if an * exception occurs. * * This file is subject to the terms and...
aixcc-public/challenge-001-exemplar-source
54,109
arch/xtensa/kernel/entry.S
/* * Low-level exception handling * * 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. * * Copyright (C) 2004 - 2008 by Tensilica Inc. * Copyright (C) 2015 Cadence Design Systems Inc. * * Chr...
aixcc-public/challenge-001-exemplar-source
1,341
arch/xtensa/kernel/mxhead.S
/* * Xtensa Secondary Processors startup code. * * 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. * * Copyright (C) 2001 - 2013 Tensilica Inc. * * Joe Taylor <joe@tensilica.com> * Chris Zan...
aixcc-public/challenge-001-exemplar-source
6,815
arch/xtensa/kernel/coprocessor.S
/* * arch/xtensa/kernel/coprocessor.S * * Xtensa processor configuration-specific table of coprocessor and * other custom register layout information. * * 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 mor...
aixcc-public/challenge-001-exemplar-source
1,651
arch/xtensa/kernel/mcount.S
/* * arch/xtensa/kernel/mcount.S * * Xtensa specific mcount support * * 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. * * Copyright (C) 2013 Tensilica Inc. */ #include <linux/linkage.h> #...
aixcc-public/challenge-001-exemplar-source
9,036
arch/xtensa/kernel/vmlinux.lds.S
/* * arch/xtensa/kernel/vmlinux.lds.S * * Xtensa linker script * * 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. * * Copyright (C) 2001 - 2008 Tensilica Inc. * * Chris Zankel <chris@zanke...
aixcc-public/challenge-001-exemplar-source
12,272
arch/xtensa/kernel/align.S
/* * arch/xtensa/kernel/align.S * * Handle unalignment exceptions in kernel space. * * 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. * * Copyright (C) 2001 - 2005 Tensilica, Inc. * Copyrig...
aixcc-public/challenge-001-exemplar-source
3,724
arch/xtensa/lib/strnlen_user.S
/* * arch/xtensa/lib/strnlen_user.S * * 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. * * Returns strnlen, including trailing zero terminator. * Zero indicates error. * * Copyright ...
aixcc-public/challenge-001-exemplar-source
1,294
arch/xtensa/lib/umodsi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> ENTRY(__umodsi3) abi_entry_default #if XCHAL_HAVE_DIV32 remu a2, a2, a3 #else bltui a3, 2, .Lle_one /* check if the divisor is <= 1 */ do_nsau a5, a2, a6, a7 /* divide...
aixcc-public/challenge-001-exemplar-source
1,585
arch/xtensa/lib/udivsi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> ENTRY(__udivsi3) abi_entry_default #if XCHAL_HAVE_DIV32 quou a2, a2, a3 #else bltui a3, 2, .Lle_one /* check if the divisor <= 1 */ mov a6, a2 /* keep dividend in a6 ...
aixcc-public/challenge-001-exemplar-source
1,912
arch/xtensa/lib/divsi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> ENTRY(__divsi3) abi_entry_default #if XCHAL_HAVE_DIV32 quos a2, a2, a3 #else xor a7, a2, a3 /* sign = dividend ^ divisor */ do_abs a6, a2, a4 /* udividend = abs (divide...
aixcc-public/challenge-001-exemplar-source
7,922
arch/xtensa/lib/checksum.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * IP/TCP/UDP checksumming routines * * Xtensa version: Copyri...
aixcc-public/challenge-001-exemplar-source
7,519
arch/xtensa/lib/usercopy.S
/* * arch/xtensa/lib/usercopy.S * * Copy to/from user space (derived from arch/xtensa/lib/hal/memcopy.S) * * DO NOT COMBINE this function with <arch/xtensa/lib/hal/memcopy.S>. * It needs to remain separate and distinct. The hal files are part * of the Xtensa link-time HAL, and those files may differ per *...
aixcc-public/challenge-001-exemplar-source
3,588
arch/xtensa/lib/memset.S
/* * arch/xtensa/lib/memset.S * * ANSI C standard library function memset * (Well, almost. .fixup code might return zero.) * * 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. * * Cop...
aixcc-public/challenge-001-exemplar-source
12,694
arch/xtensa/lib/memcopy.S
/* * arch/xtensa/lib/hal/memcopy.S -- Core HAL library functions * xthal_memcpy and xthal_bcopy * * 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. * * Copyright (C) 2002 - 2012 Tensilica Inc....
aixcc-public/challenge-001-exemplar-source
5,425
arch/xtensa/lib/strncpy_user.S
/* * arch/xtensa/lib/strncpy_user.S * * 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. * * Returns: -EFAULT if exception before terminator, N if the entire * buffer filled, else strlen....
aixcc-public/challenge-001-exemplar-source
5,194
arch/xtensa/lib/umulsidi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> #if !XCHAL_HAVE_MUL16 && !XCHAL_HAVE_MUL32 && !XCHAL_HAVE_MAC16 #define XCHAL_NO_MUL 1 #endif ENTRY(__umulsidi3) #ifdef __XTENSA_CALL0_ABI__ abi_entry(32) s32i a12, sp, ...
aixcc-public/challenge-001-exemplar-source
2,572
arch/xtensa/lib/modsi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> ENTRY(__modsi3) abi_entry_default #if XCHAL_HAVE_DIV32 rems a2, a2, a3 #else mov a7, a2 /* save original (signed) dividend */ do_abs a2, a2, a4 /* udividend = abs (div...
aixcc-public/challenge-001-exemplar-source
2,332
arch/xtensa/lib/mulsi3.S
/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ #include <linux/linkage.h> #include <asm/asmmacro.h> #include <asm/core.h> .macro do_addx2 dst, as, at, tmp #if XCHAL_HAVE_ADDX addx2 \dst, \as, \at #else slli \tmp, \as, 1 add \dst, \tmp, \at #endif .endm .macro do_addx4 dst, as, at, tmp #i...
aixcc-public/challenge-001-exemplar-source
7,456
arch/xtensa/mm/misc.S
/* * arch/xtensa/mm/misc.S * * Miscellaneous assembly functions. * * 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. * * Copyright (C) 2001 - 2007 Tensilica Inc. * * Chris Zankel <chris@zan...
aixcc-public/challenge-001-exemplar-source
5,049
arch/xtensa/boot/boot-redboot/bootstrap.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/core.h> #include <asm/regs.h> #include <asm/asmmacro.h> #include <asm/cacheasm.h> #include <asm/processor.h> /* * RB-Data: RedBoot data/bss * P: Boot-Parameters * L: Kernel-Loader * * The Linux-Kernel image including the loader must be loaded * t...
aixcc-public/challenge-001-exemplar-source
1,464
arch/xtensa/boot/boot-elf/bootstrap.S
/* * arch/xtensa/boot/boot-elf/bootstrap.S * * Low-level exception handling * * 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. * * Copyright (C) 2004 - 2013 by Tensilica Inc. * * Chris Zan...
aixcc-public/challenge-001-exemplar-source
20,185
arch/s390/kernel/entry.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * S390 low-level entry points. * * Copyright IBM Corp. 1999, 2012 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Hartmut Penner (hp@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com), */ #include <linux/init.h> #includ...
aixcc-public/challenge-001-exemplar-source
2,059
arch/s390/kernel/relocate_kernel.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2005 * * Author(s): Rolf Adelsberger * */ #include <linux/linkage.h> #include <asm/page.h> #include <asm/sigp.h> /* * moves the new kernel to its destination... * %r2 = pointer to first kimage_entry_t * %r3 = start address - where to jump to afte...
aixcc-public/challenge-001-exemplar-source
4,222
arch/s390/kernel/mcount.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2008, 2009 * */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/ftrace.h> #include <asm/nospec-insn.h> #include <asm/ptrace.h> #include <asm/export.h> #define STACK_FRAME_SIZE (STACK_FRAME_OVERHEAD + __PT_SIZE) #define STACK_PTR...