repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
16,508
Projects/NUCLEO-WL55JC/Templates_LL/SingleCore/MDK-ARM/startup_stm32wl55xx_cm4.s
;******************************************************************************** ;* File Name : startup_stm32wl55xx_cm4.s ;* Author : MCD Application Team ;* Description : STM32WL55xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
17,624
Projects/NUCLEO-WL55JC/Templates_LL/SingleCore/EWARM/startup_stm32wl55xx_cm4.s
;******************************************************************************** ;* File Name : startup_stm32wl55xx_cm4.s ;* Author : MCD Application Team ;* Description : M4 core vector table of the STM32WLxxxx devices for the ;* IAR (EWARM) toolchain. ;* ;* ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
16,279
Projects/NUCLEO-WL55JC/Templates_LL/SingleCore/STM32CubeIDE/Application/Startup/startup_stm32wl55jcix.s
/** ****************************************************************************** * @file startup_stm32wl55xx_cm4.s * @author MCD Application Team * @brief STM32WL55xx devices Cortex-M4 vector table for GCC toolchain. * This module performs: * - Set the initial SP * ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,347
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_GNU_CM0PLUS.s
/** ****************************************************************************** * @file se_stack_smuggler_GNU_CM0PLUS.s * @author MCD Application Team * @brief Switch SP from SB to SE RAM region. ****************************************************************************** * @attention * ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,340
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_GNU.s
/** ****************************************************************************** * @file se_stack_smuggler_GNU.s * @author MCD Application Team * @brief Switch SP from SB to SE RAM region. ****************************************************************************** * @attention * * Copyr...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,320
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_IAR_CM0PLUS.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_IAR_CM0PLUS.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;*****************************************************************************...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,306
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_IAR.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_IAR.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;******************************************************************************* ;* @a...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,363
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_ARM.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_ARM.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;******************************************************************************* ;* @a...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
2,727
Middlewares/ST/STM32_Secure_Engine/Core/se_interface_exception_ARM.s
;/****************************************************************************** ;* File Name : se_interface_exception.s ;* Author : MCD Application Team ;* Description : This file defines function to handle user interrupts ;* raised in Firewall ;************************...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
1,375
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_ARM_CM0PLUS.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_ARM_CM0PLUS.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;*****************************************************************************...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
2,821
Middlewares/ST/STM32_Secure_Engine/Core/se_interface_exception_GNU.s
/******************************************************************************* * File Name : se_interface_exception.s * Author : MCD Application Team * Description : This file defines function to handle user interrupts * raised in Firewall ************************...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
4,920
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_it_mngt_IAR.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_ARM.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;******************************************************************************* ;* @a...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
2,707
Middlewares/ST/STM32_Secure_Engine/Core/se_interface_exception_IAR.s
;/****************************************************************************** ;* File Name : se_interface_exception.s ;* Author : MCD Application Team ;* Description : This file defines function to handle user interrupts ;* raised in Firewall ;************************...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
5,087
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_it_mngt_GNU.s
/****************************************************************************** * File Name : se_stack_smuggler_IAR.s * Author : MCD Application Team * Description : Switch SP from SB to SE RAM region. ******************************************************************************* * @at...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
4,991
Middlewares/ST/STM32_Secure_Engine/Core/se_stack_smuggler_it_mngt_ARM.s
;/****************************************************************************** ;* File Name : se_stack_smuggler_ARM.s ;* Author : MCD Application Team ;* Description : Switch SP from SB to SE RAM region. ;******************************************************************************* ;* @a...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
2,814
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM3/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
3,722
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4F/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
5,588
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4_MPU/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
4,157
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM0/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
3,740
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM7/r0p1/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
15,449
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
3,224
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM33/secure/secure_context_port_asm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
5,612
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM7_MPU/r0p1/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
17,951
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM23/non_secure/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
3,375
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM23/secure/secure_context_port_asm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
10,398
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
Ai-Thinker-Open/Ai-Thinker-LoRaWAN-Ra-09
13,585
Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM23_NTZ/non_secure/portasm.s
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includ...
aixcc-public/challenge-001-exemplar-source
1,243
usr/initramfs_data.S
/* SPDX-License-Identifier: GPL-2.0 */ /* initramfs_data includes the compressed binary that is the filesystem used for early user space. Note: Older versions of "as" (prior to binutils 2.11.90.0.23 released on 2001-07-14) dit not support .incbin. If you are forced to use older binutils than that then the f...
aixcc-public/challenge-001-exemplar-source
1,342
scripts/module.lds.S
/* * Common module linker script, always used when linking a module. * Archs are free to supply their own linker scripts. ld will * combine them automatically. */ SECTIONS { /DISCARD/ : { *(.discard) *(.discard.*) } __ksymtab 0 : { *(SORT(___ksymtab+*)) } __ksymtab_gpl 0 : { *(SORT(___ksymtab_gpl+*)) } ...
ajaxorg/ace
1,491
demo/kitchen-sink/docs/assembly_arm32.s
.section .text .global _start .global msg _start: bl _asmtest mov r1, r0 // move return value into r1 for syscall write /* syscall write(int fd, const void *buf, size_t count) */ mov r0, #1 //ldr r1, =msg // done by above call to _asmtest ldr r2, =len mov r7, #4 svc #0 /* syscall exit(...
ajaxorg/ace-builds
1,491
demo/kitchen-sink/docs/assembly_arm32.s
.section .text .global _start .global msg _start: bl _asmtest mov r1, r0 // move return value into r1 for syscall write /* syscall write(int fd, const void *buf, size_t count) */ mov r0, #1 //ldr r1, =msg // done by above call to _asmtest ldr r2, =len mov r7, #4 svc #0 /* syscall exit(...
aixcc-public/challenge-001-exemplar-source
10,906
drivers/memory/ti-emif-sram-pm.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Low level PM code for TI EMIF * * Copyright (C) 2016-2017 Texas Instruments Incorporated - http://www.ti.com/ * Dave Gerlach */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/memory.h> #include "emif.h" #include "ti-emif-asm-offsets.h" #defin...
aixcc-public/challenge-001-exemplar-source
4,485
drivers/block/swim_asm.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * low-level functions for the SWIM floppy controller * * needs assembly language because is very timing dependent * this controller exists only on macintosh 680x0 based * * Copyright (C) 2004,2008 Laurent Vivier <Laurent@lvivier.info> * * based on Alastair Brid...
aixcc-public/challenge-001-exemplar-source
1,814
drivers/crypto/n2_asm.S
/* SPDX-License-Identifier: GPL-2.0 */ /* n2_asm.S: Hypervisor calls for NCS support. * * Copyright (C) 2009 David S. Miller <davem@davemloft.net> */ #include <linux/linkage.h> #include <asm/hypervisor.h> #include "n2_core.h" /* o0: queue type * o1: RA of queue * o2: num entries in queue * o3: address of qu...
aixcc-public/challenge-001-exemplar-source
2,042
drivers/watchdog/octeon-wdt-nmi.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. * * Copyright (C) 2007-2017 Cavium, Inc. */ #include <asm/asm.h> #include <asm/regdef.h> #define CVMSEG_BASE -32768 #define CVMSEG_SIZE 6912...
aixcc-public/challenge-001-exemplar-source
1,538
drivers/char/hw_random/n2-asm.S
/* SPDX-License-Identifier: GPL-2.0 */ /* n2-asm.S: Niagara2 RNG hypervisor call assembler. * * Copyright (C) 2008 David S. Miller <davem@davemloft.net> */ #include <linux/linkage.h> #include <asm/hypervisor.h> #include "n2rng.h" .text ENTRY(sun4v_rng_get_diag_ctl) mov HV_FAST_RNG_GET_DIAG_CTL, %o5 ta HV_FAST_T...
aixcc-public/challenge-001-exemplar-source
2,152
drivers/soc/bcm/brcmstb/pm/s3-mips.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2016 Broadcom Corporation */ #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h> #include <asm/bmips.h> #include "pm.h" .text .set noreorder .align 5 .global s3_reentry /* * a0: AON_CTRL base register * a1: D-Cache line siz...
aixcc-public/challenge-001-exemplar-source
1,305
drivers/soc/bcm/brcmstb/pm/s2-arm.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright © 2014-2017 Broadcom */ #include <linux/linkage.h> #include <asm/assembler.h> #include "pm.h" .text .align 3 #define AON_CTRL_REG r10 #define DDR_PHY_STATUS_REG r11 /* * r0: AON_CTRL base address * r1: DDRY PHY PLL status register address */ ENTRY(...
aixcc-public/challenge-001-exemplar-source
2,947
drivers/soc/bcm/brcmstb/pm/s2-mips.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2016 Broadcom Corporation */ #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h> #include <asm/stackframe.h> #include "pm.h" .text .set noreorder .align 5 /* * a0: u32 params array */ LEAF(brcm_pm_do_s2) subu sp, 64 sw ra, 0...
aixcc-public/challenge-001-exemplar-source
23,572
drivers/net/wan/wanxlfw.S
/* SPDX-License-Identifier: GPL-2.0-only */ .psize 0 /* wanXL serial card driver for Linux card firmware part Copyright (C) 2003 Krzysztof Halasa <khc@pm.waw.pl> DPRAM BDs: 0x000 - 0x050 TX#0 0x050 - 0x140 RX#0 0x140 - 0x190 TX#1 0x190 - 0x280 RX#1 0x280 - 0x2D0 TX#2 0x2D0 - 0x3C0 RX#2 0x3C0 - 0x410 TX...
AjayMT/mako
3,197
src/kernel/interrupt.s
; interrupt.s ; ; Interrupt handling interface for Mako. ; ; Author: Ajay Tatachar <ajaymt2@illinois.edu> global enable_interrupts global disable_interrupts global interrupt_save_disable global interrupt_restore extern forward_interrupt ; Declare an interupt handler that discards the error c...
AjayMT/mako
2,599
src/kernel/boot.s
; boot.s ; ; Kernel loader. ; ; Author: Ajay Tatachar <ajaymt2@illinois.edu> %include "constants.s" global loader ; entry symbol for ELF global kernel_stack ; address of the kernel stack extern kmain ; C entry point extern kernel_start ...
AjayMT/mako
1,029
src/kernel/io.s
; io.s ; ; Serial port I/O interface for Mako. ; ; Author: Ajay Tatachar <ajaymt2@illinois.edu> global outb global outw global outl global inb global inw global inl section .text ; outb -- send a byte to an I/O port ; stack: [esp + 8] the byte ; [esp + 4] the I/O port ; ...
AjayMT/mako
1,342
src/kernel/process.s
; process.s ; ; Process management and user mode. ; ; Author: Ajay Tatachar <ajaymt2@illinois.edu> global resume_user global resume_kernel section .text resume_user: cli mov eax, [esp + 4] ; store address of registers struct in eax ; restore segment selectors except for cs a...
AjayMT/mako
1,059
src/libc/setjmp.s
; setjmp.s ; ; Non-local jumping. ; ; Taken from ToAruOS <http://github.com/klange/toaruos> global setjmp global longjmp section .text setjmp: push ebp mov ebp, esp push edi mov edi, [ebp + 8] ; edi points to jmp_buf ; save some registers mov [edi], eax mov...
aixcc-public/challenge-001-exemplar-source
3,174
drivers/scsi/arm/acornscsi-io.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * linux/drivers/acorn/scsi/acornscsi-io.S: Acorn SCSI card IO */ #include <linux/linkage.h> #include <asm/assembler.h> #include <mach/hardware.h> #if defined(__APCS_32__) #define LOADREGS(t,r,l...) ldm##t r, l #elif defined(__APCS_26__) #define LOADREGS(t,r,l...) ldm#...
aixcc-public/challenge-001-exemplar-source
3,303
drivers/firmware/efi/libstub/zboot-header.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/pe.h> #ifdef CONFIG_64BIT .set .Lextra_characteristics, 0x0 .set .Lpe_opt_magic, PE_OPT_MAGIC_PE32PLUS #else .set .Lextra_characteristics, IMAGE_FILE_32BIT_MACHINE .set .Lpe_opt_magic, PE_OPT_MAGIC_PE32 #endif .section ".head", "a" .globl __efistub_ef...
aixcc-public/challenge-001-exemplar-source
1,282
tools/edid/1680x1050.S
/* 1680x1050.S: EDID data set for standard 1680x1050 60 Hz monitor Copyright (C) 2012 Carsten Emde <C.Emde@osadl.org> This program 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 ...
aixcc-public/challenge-001-exemplar-source
1,128
tools/edid/800x600.S
/* 800x600.S: EDID data set for standard 800x600 60 Hz monitor Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org> Copyright (C) 2014 Linaro Limited This program 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 Softw...
aixcc-public/challenge-001-exemplar-source
1,278
tools/edid/1600x1200.S
/* 1600x1200.S: EDID data set for standard 1600x1200 60 Hz monitor Copyright (C) 2013 Carsten Emde <C.Emde@osadl.org> This program 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 ...
aixcc-public/challenge-001-exemplar-source
1,278
tools/edid/1280x1024.S
/* 1280x1024.S: EDID data set for standard 1280x1024 60 Hz monitor Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org> This program 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 ...
aixcc-public/challenge-001-exemplar-source
9,772
tools/edid/edid.S
/* edid.S: EDID data template Copyright (C) 2012 Carsten Emde <C.Emde@osadl.org> This program 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 of the License, or (at your option...
aixcc-public/challenge-001-exemplar-source
1,307
tools/edid/1024x768.S
/* 1024x768.S: EDID data set for standard 1024x768 60 Hz monitor Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org> This program 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 ...
aixcc-public/challenge-001-exemplar-source
1,277
tools/edid/1920x1080.S
/* 1920x1080.S: EDID data set for standard 1920x1080 60 Hz monitor Copyright (C) 2012 Carsten Emde <C.Emde@osadl.org> This program 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 ...
aixcc-public/challenge-001-exemplar-source
1,556
tools/perf/arch/arm/tests/regs_load.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #define R0 0x00 #define R1 0x08 #define R2 0x10 #define R3 0x18 #define R4 0x20 #define R5 0x28 #define R6 0x30 #define R7 0x38 #define R8 0x40 #define R9 0x48 #define SL 0x50 #define FP 0x58 #define IP 0x60 #define SP 0x68 #define LR 0x70 #define PC 0x...
aixcc-public/challenge-001-exemplar-source
1,937
tools/perf/arch/x86/tests/regs_load.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #define AX 0 #define BX 1 * 8 #define CX 2 * 8 #define DX 3 * 8 #define SI 4 * 8 #define DI 5 * 8 #define BP 6 * 8 #define SP 7 * 8 #define IP 8 * 8 #define FLAGS 9 * 8 #define CS 10 * 8 #define SS 11 * 8 #define DS 12 * 8 #define ES 13 * 8 #d...
aixcc-public/challenge-001-exemplar-source
1,560
tools/perf/arch/powerpc/tests/regs_load.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> /* Offset is based on macros from arch/powerpc/include/uapi/asm/ptrace.h. */ #define R0 0 #define R1 1 * 8 #define R2 2 * 8 #define R3 3 * 8 #define R4 4 * 8 #define R5 5 * 8 #define R6 6 * 8 #define R7 7 * 8 #define R8 8 * 8 #define R9 9 * 8 ...
aixcc-public/challenge-001-exemplar-source
2,246
tools/testing/selftests/sgx/test_encl_bootstrap.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright(c) 2016-20 Intel Corporation. */ .macro ENCLU .byte 0x0f, 0x01, 0xd7 .endm .section ".tcs", "aw" .balign 4096 .fill 1, 8, 0 # STATE (set by CPU) .fill 1, 8, 0 # FLAGS .quad encl_ssa_tcs1 # OSSA .fill 1, 4, 0 # CSSA (set by CPU) .fill 1, 4, 1 ...
aixcc-public/challenge-001-exemplar-source
3,344
tools/testing/selftests/kvm/lib/aarch64/handlers.S
/* SPDX-License-Identifier: GPL-2.0 */ .macro save_registers add sp, sp, #-16 * 17 stp x0, x1, [sp, #16 * 0] stp x2, x3, [sp, #16 * 1] stp x4, x5, [sp, #16 * 2] stp x6, x7, [sp, #16 * 3] stp x8, x9, [sp, #16 * 4] stp x10, x11, [sp, #16 * 5] stp x12, x13, [sp, #16 * 6] stp x14, x15, [sp, #16 * 7] stp x16, x17...
aixcc-public/challenge-001-exemplar-source
1,284
tools/testing/selftests/kvm/lib/x86_64/handlers.S
handle_exception: push %r15 push %r14 push %r13 push %r12 push %r11 push %r10 push %r9 push %r8 push %rdi push %rsi push %rbp push %rbx push %rdx push %rcx push %rax mov %rsp, %rdi call route_exception pop %rax pop %rcx pop %rdx pop %rbx pop %rbp pop %rsi pop %rdi pop %r8 pop %r9 pop %r10 ...
aixcc-public/challenge-001-exemplar-source
2,436
tools/testing/selftests/arm64/mte/mte_helper.S
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2020 ARM Limited */ #include "mte_def.h" .arch armv8.5-a+memtag #define ENTRY(name) \ .globl name ;\ .p2align 2;\ .type name, @function ;\ name: #define ENDPROC(name) \ .size name, .-name ; .text /* * mte_insert_random_tag: Insert random tag and might b...
aixcc-public/challenge-001-exemplar-source
7,214
tools/testing/selftests/arm64/fp/za-test.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2021 ARM Limited. // Original author: Mark Brown <broonie@kernel.org> // // Scalable Matrix Extension ZA context switch test // Repeatedly writes unique test patterns into each ZA tile // and reads them back to verify integrity. // // for x in `seq 1 NR_CPUS`; d...
aixcc-public/challenge-001-exemplar-source
9,537
tools/testing/selftests/arm64/fp/sve-test.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2015-2019 ARM Limited. // Original author: Dave Martin <Dave.Martin@arm.com> // // Simple Scalable Vector Extension context switch test // Repeatedly writes unique test patterns into each SVE register // and reads them back to verify integrity. // // for x in `s...
aixcc-public/challenge-001-exemplar-source
5,892
tools/testing/selftests/arm64/fp/fpsimd-test.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2015-2019 ARM Limited. // Original author: Dave Martin <Dave.Martin@arm.com> // // Simple FPSIMD context switch test // Repeatedly writes unique test patterns into each FPSIMD register // and reads them back to verify integrity. // // for x in `seq 1 NR_CPUS`; d...
aixcc-public/challenge-001-exemplar-source
1,255
tools/testing/selftests/arm64/fp/fp-pidbench.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2021 ARM Limited. // Original author: Mark Brown <broonie@kernel.org> // // Trivial syscall overhead benchmark. // // This is implemented in asm to ensure that we don't have any issues with // system libraries using instructions that disrupt the test. #include ...
aixcc-public/challenge-001-exemplar-source
2,831
tools/testing/selftests/arm64/fp/asm-utils.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2015-2021 ARM Limited. // Original author: Dave Martin <Dave.Martin@arm.com> // // Utility functions for assembly code. #include <asm/unistd.h> #include "assembler.h" // Print a single character x0 to stdout // Clobbers x0-x2,x8 function putc str x0, [sp, #-1...
aixcc-public/challenge-001-exemplar-source
7,284
tools/testing/selftests/arm64/abi/syscall-abi-asm.S
// SPDX-License-Identifier: GPL-2.0-only // Copyright (C) 2021 ARM Limited. // // Assembly portion of the syscall ABI test // // Load values from memory into registers, invoke a syscall and save the // register values back to memory for later checking. The syscall to be // invoked is configured in x8 of the input GPR...
aixcc-public/challenge-001-exemplar-source
1,687
tools/testing/selftests/arm64/signal/signals.S
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2019 ARM Limited */ #include <asm/unistd.h> .section .rodata, "a" call_fmt: .asciz "Calling sigreturn with fake sigframe sized:%zd at SP @%08lX\n" .text .globl fake_sigreturn /* fake_sigreturn x0:&sigframe, x1:sigframe_size, x2:misalign_bytes */ fak...
aixcc-public/challenge-001-exemplar-source
1,294
tools/testing/selftests/powerpc/ptrace/ptrace-gpr.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * test helper assembly functions * * Copyright (C) 2016 Simon Guo, IBM Corporation. * Copyright 2022 Michael Ellerman, IBM Corporation. */ #include "basic_asm.h" #define GPR_SIZE __SIZEOF_LONG__ #define FIRST_GPR 14 #define NUM_GPRS (32 - FIRST_GPR) #define STACK...
aixcc-public/challenge-001-exemplar-source
10,214
tools/testing/selftests/powerpc/copyloops/memcpy_power7.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/ppc_asm.h> #ifndef SELFTEST_CASE /* 0 == don't use VMX, 1 == use VMX */ #define SELFTEST_CASE 0 #endif #ifdef __BIG_ENDIAN__ #define LVS(VRT,RA,RB) lvsl VRT,...
aixcc-public/challenge-001-exemplar-source
4,272
tools/testing/selftests/powerpc/copyloops/memcpy_64.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2002 Paul Mackerras, IBM Corp. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/export.h> #include <asm/asm-compat.h> #include <asm/feature-fixups.h> #include <asm/kasan.h> #ifndef SELFTEST_CASE /* For big-endian, 0 == most CPUs, ...
aixcc-public/challenge-001-exemplar-source
2,258
tools/testing/selftests/powerpc/copyloops/mem_64.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * String handling functions for PowerPC. * * Copyright (C) 1996 Paul Mackerras. */ #include <asm/processor.h> #include <asm/errno.h> #include <asm/ppc_asm.h> #include <asm/export.h> #include <asm/kasan.h> #ifndef CONFIG_KASAN _GLOBAL(__memset16) rlwimi r4,r4,16,0...
aixcc-public/challenge-001-exemplar-source
12,150
tools/testing/selftests/powerpc/copyloops/copyuser_power7.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2011 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/ppc_asm.h> #ifndef SELFTEST_CASE /* 0 == don't use VMX, 1 == use VMX */ #define SELFTEST_CASE 0 #endif #ifdef __BIG_ENDIAN__ #define LVS(VRT,RA,RB) lvsl VRT,...
aixcc-public/challenge-001-exemplar-source
11,151
tools/testing/selftests/powerpc/copyloops/copyuser_64.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2002 Paul Mackerras, IBM Corp. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/export.h> #include <asm/asm-compat.h> #include <asm/feature-fixups.h> #ifndef SELFTEST_CASE /* 0 == most CPUs, 1 == POWER6, 2 == Cell */ #define SELFT...
aixcc-public/challenge-001-exemplar-source
4,168
tools/testing/selftests/powerpc/copyloops/copy_mc_64.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) IBM Corporation, 2011 * Derived from copyuser_power7.s by Anton Blanchard <anton@au.ibm.com> * Author - Balbir Singh <bsingharora@gmail.com> */ #include <asm/ppc_asm.h> #include <asm/errno.h> #include <asm/export.h> .macro err1 100: EX_TABLE(100b,.Ldo_err...
aixcc-public/challenge-001-exemplar-source
2,691
tools/testing/selftests/powerpc/stringloops/strlen_32.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * strlen() for PPC32 * * Copyright (C) 2018 Christophe Leroy CS Systemes d'Information. * * Inspired from glibc implementation */ #include <asm/ppc_asm.h> #include <asm/export.h> #include <asm/cache.h> .text /* * Algorithm: * * 1) Given a word 'x', we can test to se...
aixcc-public/challenge-001-exemplar-source
11,692
tools/testing/selftests/powerpc/stringloops/memcmp_64.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Author: Anton Blanchard <anton@au.ibm.com> * Copyright 2015 IBM Corporation. */ #include <asm/ppc_asm.h> #include <asm/export.h> #include <asm/ppc-opcode.h> #define off8 r6 #define off16 r7 #define off24 r8 #define rA r9 #define rB r10 #define rC r11 #define rD ...
aixcc-public/challenge-001-exemplar-source
1,300
tools/testing/selftests/powerpc/pmu/loop.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2013, Michael Ellerman, IBM Corp. */ #include <ppc-asm.h> .text FUNC_START(thirty_two_instruction_loop) cmpdi r3,0 beqlr addi r4,r3,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi r4,r4,1 addi ...
aixcc-public/challenge-001-exemplar-source
6,347
tools/testing/selftests/powerpc/lib/reg.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * test helper assembly functions * * Copyright (C) 2016 Simon Guo, IBM Corporation. */ #include <ppc-asm.h> #include "reg.h" /* Non volatile GPR - unsigned long buf[18] */ FUNC_START(load_gpr) ld 14, 0*8(3) ld 15, 1*8(3) ld 16, 2*8(3) ld 17, 3*8(3) ld 18, 4*...
aixcc-public/challenge-001-exemplar-source
1,704
tools/testing/selftests/powerpc/switch_endian/switch_endian_test.S
/* SPDX-License-Identifier: GPL-2.0 */ #include "common.h" .data .balign 8 success_message: .ascii "success: switch_endian_test\n\0" .balign 8 failure_message: .ascii "failure: switch_endian_test\n\0" .section ".toc" .balign 8 pattern: .8byte 0x5555AAAA5555AAAA .text FUNC_START(_start) /* Load the pattern...
aixcc-public/challenge-001-exemplar-source
1,977
tools/testing/selftests/powerpc/switch_endian/check.S
/* SPDX-License-Identifier: GPL-2.0 */ #include "common.h" /* * Checks that registers contain what we expect, ie. they were not clobbered by * the syscall. * * r15: pattern to check registers against. * * At the end r3 == 0 if everything's OK. */ nop # guaranteed to be illegal in reverse-endian mr r9,r15 c...
aixcc-public/challenge-001-exemplar-source
1,067
tools/testing/selftests/powerpc/security/branch_loops.S
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2019, Michael Ellerman, IBM Corp. */ #include <ppc-asm.h> .data jump_table: .long 0x0 .long (.Lstate_1 - .Lstate_0) .long (.Lstate_2 - .Lstate_0) .long (.Lstate_3 - .Lstate_0) .long (.Lstate_4 - .Lstate_0) .long (.Lstate_5 - .Lstate_0) .long (.Lstate_6 -...
aixcc-public/challenge-001-exemplar-source
2,818
tools/testing/selftests/powerpc/tm/tm-signal.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2015, Cyril Bur, IBM Corp. */ #include "basic_asm.h" #include "gpr_asm.h" #include "fpu_asm.h" #include "vmx_asm.h" #include "vsx_asm.h" /* * Large caveat here being that the caller cannot expect the * signal to always be sent! The hardware can (AND W...
aixcc-public/challenge-001-exemplar-source
1,359
tools/testing/selftests/powerpc/math/vsx_asm.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2015, Cyril Bur, IBM Corp. */ #include "basic_asm.h" #include "vsx_asm.h" #long check_vsx(vector int *r3); #This function wraps storeing VSX regs to the end of an array and a #call to a comparison function in C which boils down to a memcmp() FUNC_START(...
aixcc-public/challenge-001-exemplar-source
2,384
tools/testing/selftests/powerpc/math/fpu_asm.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2015, Cyril Bur, IBM Corp. */ #include "basic_asm.h" #include "fpu_asm.h" FUNC_START(check_fpu) mr r4,r3 li r3,1 # assume a bad result lfd f0,0(r4) fcmpu cr1,f0,f14 bne cr1,1f lfd f0,8(r4) fcmpu cr1,f0,f15 bne cr1,1f lfd f0,16(r4) fcmpu cr1,f0...
aixcc-public/challenge-001-exemplar-source
2,755
tools/testing/selftests/powerpc/math/vmx_asm.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2015, Cyril Bur, IBM Corp. */ #include "basic_asm.h" #include "vmx_asm.h" # Should be safe from C, only touches r4, r5 and v0,v1,v2 FUNC_START(check_vmx) PUSH_BASIC_STACK(32) mr r4,r3 li r3,1 # assume a bad result li r5,0 lvx v0,r5,r4 vcmpequd. v1...
aixcc-public/challenge-001-exemplar-source
4,281
tools/testing/selftests/powerpc/pmu/ebb/busy_loop.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2014, Michael Ellerman, IBM Corp. */ #include <ppc-asm.h> .text FUNC_START(core_busy_loop) stdu %r1, -168(%r1) std r14, 160(%r1) std r15, 152(%r1) std r16, 144(%r1) std r17, 136(%r1) std r18, 128(%r1) std r19, 120(%r1) std r20, 112(%r1) std r21, ...
aixcc-public/challenge-001-exemplar-source
7,495
tools/testing/selftests/powerpc/pmu/ebb/ebb_handler.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2014, Michael Ellerman, IBM Corp. */ #include <ppc-asm.h> #include "reg.h" /* ppc-asm.h defines most of the reg aliases, but not r1/r2. */ #define r1 1 #define r2 2 #define RFEBB .long 0x4c000924 /* Stack layout: * * ^ * User stac...
aixcc-public/challenge-001-exemplar-source
3,553
tools/arch/x86/lib/memcpy_64.S
/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright 2002 Andi Kleen */ #include <linux/linkage.h> #include <asm/errno.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> #include <asm/export.h> .pushsection .noinstr.text, "ax" /* * We build a jump to memcpy_orig by default which gets NOPped out on * ...
aixcc-public/challenge-001-exemplar-source
2,817
tools/arch/x86/lib/memset_64.S
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright 2002 Andi Kleen, SuSE Labs */ #include <linux/linkage.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> #include <asm/export.h> /* * ISO C memset - set a memory block to a byte value. This function uses fast * string to get better performance than the o...
aixcc-public/challenge-001-exemplar-source
4,109
arch/nios2/kernel/head.S
/* * Copyright (C) 2009 Wind River Systems Inc * Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com * Copyright (C) 2004 Microtronix Datacom Ltd * Copyright (C) 2001 Vic Phillips, Microtronix Datacom Ltd. * * Based on head.S for Altera's Excalibur development board with nios processor * * ...
aixcc-public/challenge-001-exemplar-source
14,987
arch/nios2/kernel/entry.S
/* * linux/arch/nios2/kernel/entry.S * * Copyright (C) 2013-2014 Altera Corporation * Copyright (C) 2009, Wind River Systems Inc * * Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com * * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com) * Copyright (C) 1998 D. Jeff Dionne <jeff...
aixcc-public/challenge-001-exemplar-source
14,754
arch/nios2/kernel/insnemu.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2003-2013 Altera Corporation * All rights reserved. */ #include <linux/linkage.h> #include <asm/entry.h> .set noat .set nobreak /* * Explicitly allow the use of r1 (the assembler temporary register) * within this code. This register is normally...
aixcc-public/challenge-001-exemplar-source
1,066
arch/nios2/kernel/vmlinux.lds.S
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw> */ #include <asm/page.h> #include <asm-generic/vmlinux.lds.h> #include <asm/cache.h> #include <asm/thread_info.h> OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2") OUTPUT_ARCH(nios) ...
aixcc-public/challenge-001-exemplar-source
2,803
arch/nios2/boot/compressed/head.S
/* * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw> * * Based on arch/nios2/kernel/head.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. * */ /* * This code can be loaded anywhe...
aixcc-public/challenge-001-exemplar-source
7,624
arch/m68k/coldfire/head.S
/* SPDX-License-Identifier: GPL-2.0 */ /*****************************************************************************/ /* * head.S -- common startup code for ColdFire CPUs. * * (C) Copyright 1999-2011, Greg Ungerer <gerg@snapgear.com>. */ /**************************************************************************...
aixcc-public/challenge-001-exemplar-source
5,327
arch/m68k/coldfire/entry.S
/* * entry.S -- interrupt and exception processing for ColdFire * * Copyright (C) 1999-2007, Greg Ungerer (gerg@snapgear.com) * Copyright (C) 1998 D. Jeff Dionne <jeff@lineo.ca>, * Kenneth Albanowski <kjahds@kjahds.com>, * Copyright (C) 2000 Lineo Inc. (www.lineo.com) * Copyright (C)...
aixcc-public/challenge-001-exemplar-source
90,395
arch/m68k/kernel/head.S
/* -*- mode: asm -*- ** ** head.S -- This file contains the initial boot code for the ** Linux/68k kernel. ** ** Copyright 1993 by Hamish Macdonald ** ** 68040 fixes by Michael Rausch ** 68060 fixes by Roman Hodek ** MMU cleanup by Randy Thelen ** Final MMU cleanup by Roman Zippel ** ** Atari support by Andreas Sc...
aixcc-public/challenge-001-exemplar-source
1,988
arch/m68k/kernel/sun3-head.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/entry.h> #include <asm/page.h> #include <asm/contregs.h> #include <asm/sun3-head.h> PSL_HIGHIPL = 0x2700 NBSG = 0x20000 ICACHE_ONLY = 0x00000009 CACHES_OFF = 0x00000008 | actually a clear and disable...
aixcc-public/challenge-001-exemplar-source
9,946
arch/m68k/kernel/entry.S
/* -*- mode: asm -*- * * linux/arch/m68k/kernel/entry.S * * Copyright (C) 1991, 1992 Linus Torvalds * * This file is subject to the terms and conditions of the GNU General Public * License. See the file README.legal in the main directory of this archive * for more details. * * Linux/m68k support by Hamish...