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,539
arch/arm/lib/io-writesb.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-writesb.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .macro outword, rd #ifndef __ARMEB__ strb \rd, [r0] mov \rd, \rd, lsr #8 strb \rd, [r0] mov \rd, \rd, lsr #8 strb \rd, [r0...
aixcc-public/challenge-001-exemplar-source
1,680
arch/arm/lib/lshrdi3.S
/* 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...
aixcc-public/challenge-001-exemplar-source
1,611
arch/arm/lib/csumpartialcopyuser.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/csumpartialcopyuser.S * * Copyright (C) 1995-1998 Russell King * * 27/03/03 Ian Molton Clean up CONFIG_CPU */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/errno.h> #include <asm/asm-offsets.h> .text #ifdef CONFIG_CPU_...
aixcc-public/challenge-001-exemplar-source
1,661
arch/arm/lib/io-readsw-armv3.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-readsw-armv3.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .Linsw_bad_alignment: adr r0, .Linsw_bad_align_msg mov r2, lr b panic .Linsw_bad_align_msg: .asciz "insw: bad buffer alig...
aixcc-public/challenge-001-exemplar-source
4,289
arch/arm/lib/memmove.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/memmove.S * * Author: Nicolas Pitre * Created: Sep 28, 2005 * Copyright: (C) MontaVista Software Inc. */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/unwind.h> .text /* * Prototype: void *memmove(void *dest, const...
aixcc-public/challenge-001-exemplar-source
2,038
arch/arm/lib/io-writesw-armv3.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-writesw-armv3.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .Loutsw_bad_alignment: adr r0, .Loutsw_bad_align_msg mov r2, lr b panic .Loutsw_bad_align_msg: .asciz "outsw: bad buffer...
aixcc-public/challenge-001-exemplar-source
4,799
arch/arm/lib/findbit.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/findbit.S * * Copyright (C) 1995-2000 Russell King * * 16th March 2001 - John Ripley <jripley@sonicblue.com> * Fixed so that "size" is an exclusive not an inclusive quantity. * All users of these functions expect exclusive sizes, and may ...
aixcc-public/challenge-001-exemplar-source
1,141
arch/arm/lib/copy_page.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/copypage.S * * Copyright (C) 1995-1999 Russell King * * ASM optimised string functions */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/cache.h> #define COPY_COUNT (PAGE_SZ / (2 * L1_CACHE_BY...
aixcc-public/challenge-001-exemplar-source
1,680
arch/arm/lib/ashldi3.S
/* 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...
aixcc-public/challenge-001-exemplar-source
2,358
arch/arm/lib/io-readsb.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-readsb.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .Linsb_align: rsb ip, ip, #4 cmp ip, r2 movgt ip, r2 cmp ip, #2 ldrb r3, [r0] strb r3, [r1], #1 ldrbge r3, [r0] strbge r3...
aixcc-public/challenge-001-exemplar-source
1,587
arch/arm/lib/io-writesw-armv4.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-writesw-armv4.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .macro outword, rd #ifndef __ARMEB__ strh \rd, [r0] mov \rd, \rd, lsr #16 strh \rd, [r0] #else mov lr, \rd, lsr #16 ...
aixcc-public/challenge-001-exemplar-source
2,932
arch/arm/lib/memset.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/memset.S * * Copyright (C) 1995-2000 Russell King * * ASM optimised string functions */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/unwind.h> .text .align 5 ENTRY(__memset) ENTRY(mmioset) WEAK(memset) UNWIND( .fnsta...
aixcc-public/challenge-001-exemplar-source
1,120
arch/arm/lib/io-writesl.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-writesl.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> ENTRY(__raw_writesl) teq r2, #0 @ do we have to check for the zero len? reteq lr ands ip, r1, #3 bne 3f subs r2, r2, #4 ...
aixcc-public/challenge-001-exemplar-source
1,063
arch/arm/lib/delay-loop.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/delay.S * * Copyright (C) 1995, 1996 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/delay.h> .text .LC0: .word loops_per_jiffy .LC1: .word UDELAY_MULT /* * loops = r0 * HZ * loops_per_jiffy / 1000000 ...
aixcc-public/challenge-001-exemplar-source
1,385
arch/arm/lib/io-readsl.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-readsl.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> ENTRY(__raw_readsl) teq r2, #0 @ do we have to check for the zero len? reteq lr ands ip, r1, #3 bne 3f subs r2, r2, #4 bm...
aixcc-public/challenge-001-exemplar-source
2,409
arch/arm/lib/copy_from_user.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/copy_from_user.S * * Author: Nicolas Pitre * Created: Sep 29, 2005 * Copyright: MontaVista Software, Inc. */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/unwind.h> /* * Prototype: * * size_t arm_copy_from_user(void...
aixcc-public/challenge-001-exemplar-source
8,247
arch/arm/lib/lib1funcs.S
/* * linux/arch/arm/lib/lib1funcs.S: Optimized ARM division routines * * Author: Nicolas Pitre <nico@fluxnic.net> * - contributed to gcc-3.4 on Sep 30, 2003 * - adapted for the Linux kernel on Oct 2, 2003 */ /* Copyright 1995, 1996, 1998, 1999, 2000, 2003 Free Software Foundation, Inc. This file is free sof...
aixcc-public/challenge-001-exemplar-source
2,232
arch/arm/lib/io-readsw-armv4.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/io-readsw-armv4.S * * Copyright (C) 1995-2000 Russell King */ #include <linux/linkage.h> #include <asm/assembler.h> .macro pack, rd, hw1, hw2 #ifndef __ARMEB__ orr \rd, \hw1, \hw2, lsl #16 #else orr \rd, \hw2, \hw1, lsl #16 #endif .endm ...
aixcc-public/challenge-001-exemplar-source
3,479
arch/arm/lib/getuser.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/getuser.S * * Copyright (C) 2001 Russell King * * Idea from x86 version, (C) Copyright 1998 Linus Torvalds * * These functions have a non-standard call interface to make them more * efficient, especially as they return an error value in addi...
aixcc-public/challenge-001-exemplar-source
2,052
arch/arm/lib/putuser.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/putuser.S * * Copyright (C) 2001 Russell King * * Idea from x86 version, (C) Copyright 1998 Linus Torvalds * * These functions have a non-standard call interface to make * them more efficient, especially as they return an error * value in a...
aixcc-public/challenge-001-exemplar-source
1,123
arch/arm/lib/call_with_stack.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/lib/call_with_stack.S * * Copyright (C) 2011 ARM Ltd. * Written by Will Deacon <will.deacon@arm.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/unwind.h> /* * void call_with_stack(void (*fn)(void *), void *arg, void *sp) * *...
aixcc-public/challenge-001-exemplar-source
2,332
arch/arm/mach-exynos/sleep.S
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2013 Samsung Electronics Co., Ltd. * http://www.samsung.com * * Exynos low-level resume code */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/hardware/cache-l2x0.h> #include "smc.h" #define CPU_MASK 0xff0ffff0 #define CPU_CORTEX_...
aixcc-public/challenge-001-exemplar-source
2,898
arch/arm/mach-sa1100/sleep.S
/* * SA11x0 Assembler Sleep/WakeUp Management Routines * * Copyright (c) 2001 Cliff Brake <cbrake@accelent.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License. * * History: * * 2001-02-06: Cliff Brake Initial code * * 2...
aixcc-public/challenge-001-exemplar-source
3,266
arch/arm/mach-imx/suspend-imx53.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. */ /* */ #include <linux/linkage.h> #define M4IF_MCR0_OFFSET (0x008C) #define M4IF_MCR0_FDVFS (0x1 << 11) #define M4IF_MCR0_FDVACK (0x1 << 27) .align 3 /* * ==================== low level suspend =...
aixcc-public/challenge-001-exemplar-source
2,864
arch/arm/mach-imx/ssi-fiq.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de> */ #include <linux/linkage.h> #include <asm/assembler.h> /* * r8 = bit 0-15: tx offset, bit 16-31: tx buffer size * r9 = bit 0-15: rx offset, bit 16-31: rx buffer size */ #define SSI_STX0 0x00 #define SS...
aixcc-public/challenge-001-exemplar-source
7,911
arch/arm/mach-imx/suspend-imx6.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2014 Freescale Semiconductor, Inc. */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/hardware/cache-l2x0.h> #include "hardware.h" /* * ==================== low level suspend ==================== * * B...
aixcc-public/challenge-001-exemplar-source
2,261
arch/arm/common/vlock.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * vlock.S - simple voting lock implementation for ARM * * Created by: Dave Martin, 2012-08-16 * Copyright: (C) 2012-2013 Linaro Limited * * This algorithm is described in more detail in * Documentation/arm/vlocks.rst. */ #include <linux/linkage.h> #include "vlock...
aixcc-public/challenge-001-exemplar-source
5,240
arch/arm/common/mcpm_head.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/common/mcpm_head.S -- kernel entry point for multi-cluster PM * * Created by: Nicolas Pitre, March 2012 * Copyright: (C) 2012-2013 Linaro Limited * * Refer to Documentation/arm/cluster-pm-race-avoidance.rst * for details of the synchronisation algorit...
aixcc-public/challenge-001-exemplar-source
24,166
arch/arm/mach-at91/pm_suspend.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/mach-at91/pm_slow_clock.S * * Copyright (C) 2006 Savin Zlobec * * AT91SAM9 support: * Copyright (C) 2007 Anti Sullin <anti.sullin@artecdesign.ee> */ #include <linux/linkage.h> #include <linux/clk/at91_pmc.h> #include "pm.h" #include "pm_data-offsets.h" ...
aixcc-public/challenge-001-exemplar-source
3,134
arch/arm/mach-socfpga/self-refresh.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-2015 Altera Corporation. All rights reserved. */ #include <linux/linkage.h> #include <asm/assembler.h> #define MAX_LOOP_COUNT 1000 /* Register offset */ #define SDR_CTRLGRP_LOWPWREQ_ADDR 0x54 #define SDR_CTRLGRP_LOWPWRACK_ADDR 0x58 /* ...
aixcc-public/challenge-001-exemplar-source
4,119
arch/arm/mach-mvebu/coherency_ll.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Coherency fabric: low level functions * * Copyright (C) 2012 Marvell * * Gregory CLEMENT <gregory.clement@free-electrons.com> * * This file implements the assembly function to add a CPU to the * coherency fabric. This function is called by each of the secondary ...
aixcc-public/challenge-001-exemplar-source
1,853
arch/arm/mach-mvebu/pmsu_ll.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014 Marvell * * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> * Gregory Clement <gregory.clement@free-electrons.com> */ #include <linux/linkage.h> #include <asm/assembler.h> ENTRY(armada_38x_scu_power_up) mrc p15, 4, r1, c15, c0 @ get...
aixcc-public/challenge-001-exemplar-source
18,661
arch/arm/mm/proc-xscale.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-xscale.S * * Author: Nicolas Pitre * Created: November 2000 * Copyright: (C) 2000, 2001 MontaVista Software Inc. * * MMU functions for the Intel XScale CPUs * * 2001 Aug 21: * some contributions by Brett Gaines <brett.w.gaines@intel.c...
aixcc-public/challenge-001-exemplar-source
2,522
arch/arm/mm/tlb-v6.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlb-v6.S * * Copyright (C) 1997-2002 Russell King * * ARM architecture version 6 TLB handling functions. * These assume a split I/D TLB. */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/assemble...
aixcc-public/challenge-001-exemplar-source
1,586
arch/arm/mm/tlb-v4wbi.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlbv4wbi.S * * Copyright (C) 1997-2002 Russell King * * ARM architecture version 4 and version 5 TLB handling functions. * These assume a split I/D TLBs, with a write buffer. * * Processors: ARM920 ARM922 ARM925 ARM926 XScale */ #include <...
aixcc-public/challenge-001-exemplar-source
15,728
arch/arm/mm/proc-feroceon.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-feroceon.S: MMU functions for Feroceon * * Heavily based on proc-arm926.S * Maintainer: Assaf Hoffman <hoffman@marvell.com> */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #include <asm/assembler.h> #in...
aixcc-public/challenge-001-exemplar-source
1,253
arch/arm/mm/abort-ev6.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/assembler.h> #include "abort-macro.S" /* * Function: v6_early_abort * * Params : r2 = pt_regs * : r4 = aborted context pc * : r5 = aborted context psr * * Returns : r4 - r11, r13 preserved * * Purpose : obtain information ab...
aixcc-public/challenge-001-exemplar-source
11,154
arch/arm/mm/proc-arm920.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm920.S: MMU functions for ARM920 * * Copyright (C) 1999,2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache and ...
aixcc-public/challenge-001-exemplar-source
1,457
arch/arm/mm/tlb-v4.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlbv4.S * * Copyright (C) 1997-2002 Russell King * * ARM architecture version 4 TLB handling functions. * These assume a split I/D TLBs, and no write buffer. * * Processors: ARM720T */ #include <linux/linkage.h> #include <linux/init.h> #inc...
aixcc-public/challenge-001-exemplar-source
1,880
arch/arm/mm/pv-fixup-asm.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015 Russell King * * This assembly is required to safely remap the physical address space * for Keystone 2 */ #include <linux/linkage.h> #include <linux/pgtable.h> #include <asm/asm-offsets.h> #include <asm/cp15.h> #include <asm/memory.h> .section ...
aixcc-public/challenge-001-exemplar-source
1,499
arch/arm/mm/l2c-l2x0-resume.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * L2C-310 early resume code. This can be used by platforms to restore * the settings of their L2 cache controller before restoring the * processor state. * * This code can only be used to if you are running in the secure world. */ #include <linux/linkage.h> #include <asm...
aixcc-public/challenge-001-exemplar-source
5,204
arch/arm/mm/proc-sa110.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-sa110.S * * Copyright (C) 1997-2002 Russell King * hacked for non-paged-MM by Hyok S. Choi, 2003. * * MMU functions for SA110 * * These are the low level assembler for performing cache and TLB * functions on the StrongARM-110. */ #i...
aixcc-public/challenge-001-exemplar-source
25,318
arch/arm/mm/proc-v7.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-v7.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * * This is the "shell" of the ARMv7 processor support. */ #include <linux/arm-smccc.h> #include <linux/init.h> #include <linux/linkage.h> #include <linux/pgtable.h> #include <asm/assemb...
aixcc-public/challenge-001-exemplar-source
2,511
arch/arm/mm/tlb-v7.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlb-v7.S * * Copyright (C) 1997-2002 Russell King * Modified for ARMv7 by Catalin Marinas * * ARM architecture version 6 TLB handling functions. * These assume a split I/D TLB. */ #include <linux/init.h> #include <linux/linkage.h> #include ...
aixcc-public/challenge-001-exemplar-source
3,825
arch/arm/mm/proc-arm740.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/arm740.S: utility functions for ARM740 * * Copyright (C) 2004-2006 Hyok S. Choi (hyok.choi@samsung.com) */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #inclu...
aixcc-public/challenge-001-exemplar-source
5,010
arch/arm/mm/proc-fa526.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-fa526.S: MMU functions for FA526 * * Written by : Luke Lee * Copyright (C) 2005 Faraday Corp. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> * * These are the low level assembler for performing cache and T...
aixcc-public/challenge-001-exemplar-source
11,291
arch/arm/mm/proc-arm1020e.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm1020e.S: MMU functions for ARM1020 * * Copyright (C) 2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache and TL...
aixcc-public/challenge-001-exemplar-source
3,842
arch/arm/mm/proc-v7-3level.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/mm/proc-v7-3level.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2011 ARM Ltd. * Author: Catalin Marinas <catalin.marinas@arm.com> * based on arch/arm/mm/proc-v7-2level.S */ #include <asm/assembler.h> #define TTB_IRGN_NC (0 << 8) #de...
aixcc-public/challenge-001-exemplar-source
14,217
arch/arm/mm/proc-xsc3.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-xsc3.S * * Original Author: Matthew Gilbert * Current Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> * * Copyright 2004 (C) Intel Corp. * Copyright 2005 (C) MontaVista Software, Inc. * * MMU functions for the Intel XScale3 Core (XS...
aixcc-public/challenge-001-exemplar-source
3,046
arch/arm/mm/proc-arm7tdmi.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-arm7tdmi.S: utility functions for ARM7TDMI * * Copyright (C) 2003-2006 Hyok S. Choi <hyok.choi@samsung.com> */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #include <asm/assembler.h> #include <asm/asm-offsets....
aixcc-public/challenge-001-exemplar-source
12,134
arch/arm/mm/proc-arm926.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm926.S: MMU functions for ARM926EJ-S * * Copyright (C) 1999-2001 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache ...
aixcc-public/challenge-001-exemplar-source
9,328
arch/arm/mm/proc-macros.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * We need constants.h for: * VMA_VM_MM * VMA_VM_FLAGS * VM_EXEC */ #include <asm/asm-offsets.h> #include <asm/thread_info.h> #ifdef CONFIG_CPU_V7M #include <asm/v7m.h> #endif /* * vma_vm_mm - get mm pointer from vma pointer (vma->vm_mm) */ .macro vma_vm_mm, rd, rn ...
aixcc-public/challenge-001-exemplar-source
10,511
arch/arm/mm/proc-arm946.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/arm946.S: utility functions for ARM946E-S * * Copyright (C) 2004-2006 Hyok S. Choi (hyok.choi@samsung.com) * * (Many of cache codes are from proc-arm926.S) */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #includ...
aixcc-public/challenge-001-exemplar-source
6,825
arch/arm/mm/proc-sa1100.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-sa1100.S * * Copyright (C) 1997-2002 Russell King * hacked for non-paged-MM by Hyok S. Choi, 2003. * * MMU functions for SA110 * * These are the low level assembler for performing cache and TLB * functions on the StrongARM-1100 and S...
aixcc-public/challenge-001-exemplar-source
3,161
arch/arm/mm/cache-v4.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v4.S * * Copyright (C) 1997-2002 Russell king */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/page.h> #include "proc-macros.S" /* * flush_icache_all() * * Unconditionally clean and invalidat...
aixcc-public/challenge-001-exemplar-source
13,094
arch/arm/mm/proc-arm925.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/arm925.S: MMU functions for ARM925 * * Copyright (C) 1999,2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * Copyright (C) 2002 RidgeRun, Inc. * Copyright (C) 2002-2003 MontaVista Software, Inc. * * Update for Linux-2.6 a...
aixcc-public/challenge-001-exemplar-source
11,127
arch/arm/mm/proc-mohawk.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-mohawk.S: MMU functions for Marvell PJ1 core * * PJ1 (codename Mohawk) is a hybrid of the xscale3 and Marvell's own core. * * Heavily based on proc-arm926.S and proc-xsc3.S */ #include <linux/linkage.h> #include <linux/init.h> #includ...
aixcc-public/challenge-001-exemplar-source
1,065
arch/arm/mm/abort-ev5tj.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/assembler.h> #include "abort-macro.S" /* * Function: v5tj_early_abort * * Params : r2 = pt_regs * : r4 = aborted context pc * : r5 = aborted context psr * * Returns : r4 - r11, r13 preserved * * Purpose : obtain information ...
aixcc-public/challenge-001-exemplar-source
1,707
arch/arm/mm/tlb-fa.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlb-fa.S * * Copyright (C) 2005 Faraday Corp. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> * * Based on tlb-v4wbi.S: * Copyright (C) 1997-2002 Russell King * * ARM architecture version 4, Faraday variation. *...
aixcc-public/challenge-001-exemplar-source
4,618
arch/arm/mm/cache-v4wt.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v4wt.S * * Copyright (C) 1997-2002 Russell king * * ARMv4 write through cache operations support. * * We assume that the write buffer is not enabled. */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #inc...
aixcc-public/challenge-001-exemplar-source
12,203
arch/arm/mm/proc-arm1020.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm1020.S: MMU functions for ARM1020 * * Copyright (C) 2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache and TLB...
aixcc-public/challenge-001-exemplar-source
12,863
arch/arm/mm/cache-v7.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v7.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2005 ARM Ltd. * * This is the "shell" of the ARMv7 processor support. */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/er...
aixcc-public/challenge-001-exemplar-source
10,917
arch/arm/mm/proc-arm1026.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm1026.S: MMU functions for ARM1026EJ-S * * Copyright (C) 2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache and...
aixcc-public/challenge-001-exemplar-source
1,188
arch/arm/mm/abort-macro.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * The ARM LDRD and Thumb LDRSB instructions use bit 20/11 (ARM/Thumb) * differently than every other instruction, so it is set to 0 (write) * even though the instructions are read instructions. This means that * during an abort the instructions will be treated as a write an...
aixcc-public/challenge-001-exemplar-source
6,163
arch/arm/mm/cache-v4wb.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v4wb.S * * Copyright (C) 1997-2002 Russell king */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/memory.h> #include <asm/page.h> #include "proc-macros.S" /* * The size of one data cache line. ...
aixcc-public/challenge-001-exemplar-source
9,105
arch/arm/mm/proc-arm940.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/arm940.S: utility functions for ARM940T * * Copyright (C) 2004-2006 Hyok S. Choi (hyok.choi@samsung.com) */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #include <asm/assembler.h> #include <asm/hwcap.h> #include <a...
aixcc-public/challenge-001-exemplar-source
1,786
arch/arm/mm/tlb-v4wb.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/tlbv4wb.S * * Copyright (C) 1997-2002 Russell King * * ARM architecture version 4 TLB handling functions. * These assume a split I/D TLBs w/o I TLB entry, with a write buffer. * * Processors: SA110 SA1100 SA1110 */ #include <linux/linkage....
aixcc-public/challenge-001-exemplar-source
11,098
arch/arm/mm/proc-arm1022.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm1022.S: MMU functions for ARM1022E * * Copyright (C) 2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low level assembler for performing cache and TL...
aixcc-public/challenge-001-exemplar-source
10,396
arch/arm/mm/cache-v7m.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v7m.S * * Based on linux/arch/arm/mm/cache-v7.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2005 ARM Ltd. * * This is the "shell" of the ARMv7M processor support. */ #include <linux/linkage.h> #include <linux/init...
aixcc-public/challenge-001-exemplar-source
8,276
arch/arm/mm/proc-v6.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-v6.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Modified by Catalin Marinas for noMMU support * * This is the "shell" of the ARMv6 processor support. */ #include <linux/init.h> #include <linux/linkage.h> #include <linux/pgtable.h>...
aixcc-public/challenge-001-exemplar-source
10,529
arch/arm/mm/proc-arm922.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm922.S: MMU functions for ARM922 * * Copyright (C) 1999,2000 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * Copyright (C) 2001 Altera Corporation * hacked for non-paged-MM by Hyok S. Choi, 2003. * * These are the low...
aixcc-public/challenge-001-exemplar-source
4,321
arch/arm/mm/proc-v7-2level.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/mm/proc-v7-2level.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. */ #define TTB_S (1 << 1) #define TTB_RGN_NC (0 << 3) #define TTB_RGN_OC_WBWA (1 << 3) #define TTB_RGN_OC_WT (2 << 3) #define TTB_RGN_OC_WB (3 << 3) #define TTB_NOS (1 << 5) #define TTB_I...
aixcc-public/challenge-001-exemplar-source
2,194
arch/arm/mm/proc-arm9tdmi.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-arm9tdmi.S: utility functions for ARM9TDMI * * Copyright (C) 2003-2006 Hyok S. Choi <hyok.choi@samsung.com> */ #include <linux/linkage.h> #include <linux/init.h> #include <linux/pgtable.h> #include <asm/assembler.h> #include <asm/asm-offsets....
aixcc-public/challenge-001-exemplar-source
1,170
arch/arm/mm/cache-nop.S
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include "proc-macros.S" ENTRY(nop_flush_icache_all) ret lr ENDPROC(nop_flush_icache_all) .globl nop_flush_kern_cache_all .equ nop_flush_kern_cache_all, nop_flush_icache_all .globl nop_flush...
aixcc-public/challenge-001-exemplar-source
6,896
arch/arm/mm/abort-lv4t.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/assembler.h> /* * Function: v4t_late_abort * * Params : r2 = pt_regs * : r4 = aborted context pc * : r5 = aborted context psr * * Returns : r4-r5, r9-r11, r13 preserved * * Purpose : obtain information about current aborted ...
aixcc-public/challenge-001-exemplar-source
7,859
arch/arm/mm/cache-v6.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-v6.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * * This is the "shell" of the ARMv6 processor support. */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/errno.h> #include <asm/unwind.h> ...
aixcc-public/challenge-001-exemplar-source
6,120
arch/arm/mm/cache-fa.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/cache-fa.S * * Copyright (C) 2005 Faraday Corp. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> * * Based on cache-v4wb.S: * Copyright (C) 1997-2002 Russell king * * Processors: FA520 FA526 FA626 */ #include <l...
aixcc-public/challenge-001-exemplar-source
5,372
arch/arm/mm/proc-arm720.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * linux/arch/arm/mm/proc-arm720.S: MMU functions for ARM720 * * Copyright (C) 2000 Steve Hill (sjhill@cotw.com) * Rob Scott (rscott@mtrob.fdns.net) * Copyright (C) 2000 ARM Limited, Deep Blue Solutions Ltd. * hacked for non-paged-MM by Hyo...
aixcc-public/challenge-001-exemplar-source
6,825
arch/arm/mm/proc-v7m.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/mm/proc-v7m.S * * Copyright (C) 2008 ARM Ltd. * Copyright (C) 2001 Deep Blue Solutions Ltd. * * This is the "shell" of the ARMv7-M processor support. */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/memory.h> #include <asm/...
aixcc-public/challenge-001-exemplar-source
7,106
arch/arm/mach-tegra/reset-handler.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2012, NVIDIA Corporation. All rights reserved. */ #include <linux/init.h> #include <linux/linkage.h> #include <soc/tegra/flowctrl.h> #include <soc/tegra/fuse.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> #include <asm/cache.h> #include "i...
aixcc-public/challenge-001-exemplar-source
23,741
arch/arm/mach-tegra/sleep-tegra30.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2012, NVIDIA Corporation. All rights reserved. */ #include <linux/linkage.h> #include <soc/tegra/flowctrl.h> #include <soc/tegra/fuse.h> #include <asm/asm-offsets.h> #include <asm/assembler.h> #include <asm/cache.h> #include "irammap.h" #include "slee...
aixcc-public/challenge-001-exemplar-source
10,268
arch/arm/mach-tegra/sleep-tegra20.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2012, NVIDIA Corporation. All rights reserved. * Copyright (c) 2011, Google, Inc. * * Author: Colin Cross <ccross@android.com> * Gary King <gking@nvidia.com> */ #include <linux/linkage.h> #include <soc/tegra/flowctrl.h> #include <asm/a...
aixcc-public/challenge-001-exemplar-source
3,266
arch/arm/mach-tegra/sleep.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arch/arm/mach-tegra/sleep.S * * Copyright (c) 2010-2011, NVIDIA Corporation. * Copyright (c) 2011, Google, Inc. * * Author: Colin Cross <ccross@android.com> * Gary King <gking@nvidia.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #inc...
aixcc-public/challenge-001-exemplar-source
1,385
arch/arm/mach-rockchip/sleep.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd * Author: Tony Xie <tony.xie@rock-chips.com> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/memory.h> .data /* * this code will be copied from * ddr to sram for system resumeing. * s...
aixcc-public/challenge-001-exemplar-source
39,017
arch/arm/boot/compressed/head.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/boot/compressed/head.S * * Copyright (C) 1996-2002 Russell King * Copyright (C) 2004 Hyok S. Choi (MPU support) */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/v7m.h> #include "efi-header.S" #ifdef __ARMEB__ #define OF_DT_M...
aixcc-public/challenge-001-exemplar-source
4,204
arch/arm/boot/compressed/efi-header.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013-2017 Linaro Ltd * Authors: Roy Franz <roy.franz@linaro.org> * Ard Biesheuvel <ard.biesheuvel@linaro.org> */ #include <linux/pe.h> #include <linux/sizes.h> .macro __nop AR_CLASS( mov r0, r0 ) M_CLASS( nop.w ) .endm .macro __i...
aixcc-public/challenge-001-exemplar-source
2,722
arch/arm/boot/compressed/ll_char_wr.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/lib/ll_char_wr.S * * Copyright (C) 1995, 1996 Russell King. * * Speedups & 1bpp code (C) 1996 Philip Blundell & Russell King. * * 10-04-96 RMK Various cleanups & reduced register usage. * 08-04-98 RMK Shifts re-ordered */ @ Regs: [] = corrup...
aixcc-public/challenge-001-exemplar-source
1,291
arch/arm/boot/compressed/head-sa1100.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/head-sa1100.S * * Copyright (C) 1999 Nicolas Pitre <nico@fluxnic.net> * * SA1100 specific tweaks. This is merged into head.S by the linker. * */ #include <linux/linkage.h> #include <asm/mach-types.h> .section ".start", "ax"...
aixcc-public/challenge-001-exemplar-source
3,403
arch/arm/boot/compressed/vmlinux.lds.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2000 Russell King */ #include <asm/vmlinux.lds.h> #ifdef CONFIG_CPU_ENDIAN_BE8 #define ZIMAGE_MAGIC(x) ( (((x) >> 24) & 0x000000ff) | \ (((x) >> 8) & 0x0000ff00) | \ (((x) << 8) & 0x00ff0000) | \ (((x) << 24) & 0xff000000) ) #else #defi...
aixcc-public/challenge-001-exemplar-source
3,603
arch/arm/boot/compressed/head-sharpsl.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/arm/boot/compressed/head-sharpsl.S * * Copyright (C) 2004-2005 Richard Purdie <rpurdie@rpsys.net> * * Sharp's bootloader doesn't pass any kind of machine ID * so we have to figure out the machine for ourselves... * * Support for Poodle, Corgi (SL-C700), She...
aixcc-public/challenge-001-exemplar-source
2,477
arch/arm/boot/bootp/init.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/arch/arm/boot/bootp/init.S * * Copyright (C) 2000-2003 Russell King. * * "Header" file for splitting kernel + initrd. Note that we pass * r0 through to r3 straight through. * * This demonstrates how to append code to the start of the kernel * zImage...
aixcc-public/challenge-001-exemplar-source
1,074
arch/arm/include/debug/renesas-scif.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Renesas SCIF(A) debugging macro include header * * Based on r8a7790.S * * Copyright (C) 2012-2013 Renesas Electronics Corporation * Copyright (C) 1994-1999 Russell King */ #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd00000...
aixcc-public/challenge-001-exemplar-source
1,037
arch/arm/include/debug/msm.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2011, Code Aurora Forum. All rights reserved. * Author: Brian Swetland <swetland@google.com> */ .macro addruart, rp, rv, tmp ldr \rp, =CONFIG_DEBUG_UART_PHYS ldr \rv, =CONFIG_DEBUG_UART_VIRT .endm .macro sendu...
aixcc-public/challenge-001-exemplar-source
1,681
arch/arm/include/debug/sa1100.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* arch/arm/include/debug/sa1100.S * * Debugging macro include header * * Copyright (C) 1994-1999 Russell King * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ #define UTCR3 0x0c #define UTDR 0x14 #define UTSR1 0x20 #define UTCR3_TXE 0x00000002 /* Transmi...
aixcc-public/challenge-001-exemplar-source
1,484
arch/arm/include/debug/icedcc.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/include/debug/icedcc.S * * Copyright (C) 1994-1999 Russell King */ @@ debug using ARM EmbeddedICE DCC channel .macro addruart, rp, rv, tmp .endm #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) .macro senduart, rd...
aixcc-public/challenge-001-exemplar-source
1,070
arch/arm/include/debug/s3c24xx.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* arch/arm/mach-s3c2410/include/mach/debug-macro.S * * Debugging macro include header * * Copyright (C) 1994-1999 Russell King * Copyright (C) 2005 Simtec Electronics * * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ #include <linux/serial_s3c.h> #defi...
aixcc-public/challenge-001-exemplar-source
1,277
arch/arm/include/debug/zynq.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Debugging macro include header * * Copyright (C) 2011 Xilinx */ #define UART_CR_OFFSET 0x00 /* Control Register [8:0] */ #define UART_SR_OFFSET 0x2C /* Channel Status [11:0] */ #define UART_FIFO_OFFSET 0x30 /* FIFO [15:0] or [7:0] */ #define UART_SR_TXFULL 0x...
aixcc-public/challenge-001-exemplar-source
1,903
arch/arm/include/debug/samsung.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2005, 2007 Simtec Electronics * http://armlinux.simtec.co.uk/ * Ben Dooks <ben@simtec.co.uk> */ #include <linux/serial_s3c.h> /* The S5PV210/S5PC110 implementations are as belows. */ .macro fifo_level_s5pv210 rd, rx ldr \rd, [\rx, # S3C2410_UFSTAT] ARM_BE8...
aixcc-public/challenge-001-exemplar-source
1,068
arch/arm/include/debug/8250.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/include/debug/8250.S * * Copyright (C) 1994-2013 Russell King */ #include <linux/serial_reg.h> .macro addruart, rp, rv, tmp ldr \rp, =CONFIG_DEBUG_UART_PHYS ldr \rv, =CONFIG_DEBUG_UART_VIRT .endm #ifdef CONFIG_DEBUG_UART_8250_WORD .macro store, ...
aixcc-public/challenge-001-exemplar-source
5,550
arch/arm/include/debug/brcmstb.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (C) 2016 Broadcom */ #include <linux/serial_reg.h> #include <asm/cputype.h> /* Physical register offset and virtual register offset */ #define REG_PHYS_BASE 0xf0000000 #define REG_PHYS_BASE_V7 0x08000000 #define REG_VIRT_BASE 0xfc000000 #define REG_PHYS_ADDR(x...