repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
suryaveeryadav/Python-3.4.0
14,529
Modules/_ctypes/libffi/src/mips/n32.S
/* ----------------------------------------------------------------------- n32.S - Copyright (c) 1996, 1998, 2005, 2007, 2009, 2010 Red Hat, Inc. MIPS Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
suryaveeryadav/Python-3.4.0
10,794
Modules/_ctypes/libffi/src/arm/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 1998, 2008, 2011 Red Hat, Inc. Copyright (c) 2011 Plausible Labs Cooperative, Inc. ARM Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
suryaveeryadav/Python-3.4.0
142,148
Modules/_ctypes/libffi/src/arm/trampoline.S
# GENERATED CODE - DO NOT EDIT # This file was generated by src/arm/gentramp.sh # Copyright (c) 2010, Plausible Labs Cooperative, Inc. # # 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...
suryaveeryadav/Python-3.4.0
9,120
Modules/_ctypes/libffi/src/powerpc/aix_closure.S
/* ----------------------------------------------------------------------- aix_closure.S - Copyright (c) 2002, 2003, 2009 Free Software Foundation, Inc. based on darwin_closure.S PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ass...
suryaveeryadav/Python-3.4.0
6,653
Modules/_ctypes/libffi/src/powerpc/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 1998 Geoffrey Keating Copyright (C) 2007 Free Software Foundation, Inc PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
suryaveeryadav/Python-3.4.0
6,691
Modules/_ctypes/libffi/src/powerpc/aix.S
/* ----------------------------------------------------------------------- aix.S - Copyright (c) 2002, 2009 Free Software Foundation, Inc. based on darwin.S by John Hornkvist PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
suryaveeryadav/Python-3.4.0
7,279
Modules/_ctypes/libffi/src/powerpc/ppc_closure.S
/* ----------------------------------------------------------------------- sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com> Copyright (c) 2008 Red Hat, Inc. PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
suryaveeryadav/Python-3.4.0
6,196
Modules/_ctypes/libffi/src/powerpc/linux64_closure.S
/* ----------------------------------------------------------------------- sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com> Copyright (c) 2008 Red Hat, Inc. PowerPC64 Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
suryaveeryadav/Python-3.4.0
11,262
Modules/_ctypes/libffi/src/powerpc/darwin.S
/* ----------------------------------------------------------------------- darwin.S - Copyright (c) 2000 John Hornkvist Copyright (c) 2004, 2010 Free Software Foundation, Inc. PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
suryaveeryadav/Python-3.4.0
5,263
Modules/_ctypes/libffi/src/powerpc/linux64.S
/* ----------------------------------------------------------------------- sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com> Copyright (c) 2008 Red Hat, Inc. PowerPC64 Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
suryaveeryadav/Python-3.4.0
16,330
Modules/_ctypes/libffi/src/powerpc/darwin_closure.S
/* ----------------------------------------------------------------------- darwin_closure.S - Copyright (c) 2002, 2003, 2004, 2010, Free Software Foundation, Inc. based on ppc_closure.S PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this soft...
suryaveeryadav/Python-3.4.0
9,335
Modules/_ctypes/libffi/src/x86/win64.S
#define LIBFFI_ASM #include <fficonfig.h> #include <ffi.h> /* Constants for ffi_call_win64 */ #define STACK 0 #define PREP_ARGS_FN 32 #define ECIF 40 #define CIF_BYTES 48 #define CIF_FLAGS 56 #define RVALUE 64 #define FN 72 /* ffi_call_win64 (void (*prep_args_fn)(char *, extended_cif *), extended...
suryaveeryadav/Python-3.4.0
11,483
Modules/_ctypes/libffi/src/x86/freebsd.S
/* ----------------------------------------------------------------------- freebsd.S - Copyright (c) 1996, 1998, 2001, 2002, 2003, 2005 Red Hat, Inc. Copyright (c) 2008 Björn König X86 Foreign Function Interface for FreeBSD Permission is hereby granted, free of charge, to any person obtaining a...
suryaveeryadav/Python-3.4.0
12,418
Modules/_ctypes/libffi/src/x86/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2013 The Written Word, Inc. - Copyright (c) 1996,1998,2001-2003,2005,2008,2010 Red Hat, Inc. X86 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a cop...
suryaveeryadav/Python-3.4.0
11,363
Modules/_ctypes/libffi/src/x86/darwin64.S
/* ----------------------------------------------------------------------- darwin64.S - Copyright (c) 2006 Free Software Foundation, Inc. Copyright (c) 2008 Red Hat, Inc. derived from unix64.S x86-64 Foreign Function Interface for Darwin. Permission is hereby granted, free of charge, to any perso...
suryaveeryadav/Python-3.4.0
11,571
Modules/_ctypes/libffi/src/x86/unix64.S
/* ----------------------------------------------------------------------- unix64.S - Copyright (c) 2013 The Written Word, Inc. - Copyright (c) 2008 Red Hat, Inc - Copyright (c) 2002 Bo Thorsen <bo@suse.de> x86-64 Foreign Function Interface Permission is hereby granted, free of charge, to any p...
suryaveeryadav/Python-3.4.0
32,228
Modules/_ctypes/libffi/src/x86/win32.S
/* ----------------------------------------------------------------------- win32.S - Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc. Copyright (c) 2001 John Beniton Copyright (c) 2002 Ranjit Mathew Copyright (c) 2009 Daniel Witte X86 Foreign Function Interface Permission ...
suryaveeryadav/Python-3.4.0
9,827
Modules/_ctypes/libffi/src/x86/darwin.S
/* ----------------------------------------------------------------------- darwin.S - Copyright (c) 1996, 1998, 2001, 2002, 2003, 2005 Red Hat, Inc. Copyright (C) 2008 Free Software Foundation, Inc. X86 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a c...
suryaveeryadav/Python-3.4.0
11,649
Modules/_ctypes/libffi/src/ia64/unix.S
/* ----------------------------------------------------------------------- unix.S - Copyright (c) 1998, 2008 Red Hat, Inc. Copyright (c) 2000 Hewlett Packard Company IA64/unix Foreign Function Interface Primary author: Hans Boehm, HP Labs Loosely modeled on Cygnus code for other platforms...
suryaveeryadav/Python-3.4.0
2,676
Modules/_ctypes/libffi/src/moxie/eabi.S
/* ----------------------------------------------------------------------- eabi.S - Copyright (c) 2012, 2013 Anthony Green Moxie Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software''), to dea...
suryaveeryadav/Python-3.4.0
4,840
Modules/_ctypes/libffi/src/avr32/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2009 Bradley Smith <brad@brad-smith.co.uk> AVR32 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
suryaveeryadav/Python-3.4.0
9,317
Modules/_ctypes/libffi/src/aarch64/sysv.S
/* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd. 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, including without limitation the rights to use, copy, modify, merge, publish...
suryaveeryadav/Python-3.4.0
10,785
Modules/_ctypes/libffi/src/s390/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2000 Software AG Copyright (c) 2008 Red Hat, Inc. S390 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated doc...
suryaveeryadav/Python-3.4.0
11,693
Modules/_ctypes/libffi/src/sh64/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2003, 2004, 2006, 2008 Kaz Kojima SuperH SHmedia Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...
suryaveeryadav/Python-3.4.0
3,050
Modules/_ctypes/libffi/src/m32r/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2004 Renesas Technology M32R Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software'...
suryaveeryadav/Python-3.4.0
5,479
Modules/_ctypes/libffi/src/cris/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2004 Simon Posnjak Copyright (c) 2005 Axis Communications AB CRIS Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
suryaveeryadav/Python-3.4.0
3,414
Modules/_ctypes/libffi/src/frv/eabi.S
/* ----------------------------------------------------------------------- eabi.S - Copyright (c) 2004 Anthony Green FR-V Assembly glue. 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 th...
suryaveeryadav/Python-3.4.0
5,610
Modules/_ctypes/libffi/src/xtensa/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2013 Tensilica, Inc. XTENSA Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software''...
suryaveeryadav/Python-3.4.0
7,517
Modules/_ctypes/libffi/src/metag/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2013 Imagination Technologies Ltd. Meta Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``So...
suryaveeryadav/Python-3.4.0
9,226
Modules/_ctypes/libffi/src/pa/hpux32.S
/* ----------------------------------------------------------------------- hpux32.S - Copyright (c) 2006 Free Software Foundation, Inc. (c) 2008 Red Hat, Inc. based on src/pa/linux.S HP-UX PA Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining ...
suryaveeryadav/Python-3.4.0
9,187
Modules/_ctypes/libffi/src/pa/linux.S
/* ----------------------------------------------------------------------- linux.S - (c) 2003-2004 Randolph Chung <tausq@debian.org> (c) 2008 Red Hat, Inc. HPPA Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated doc...
suryaveeryadav/Python-3.4.0
11,939
Modules/_ctypes/libffi/src/tile/tile.S
/* ----------------------------------------------------------------------- tile.S - Copyright (c) 2011 Tilera Corp. Tilera TILEPro and TILE-Gx Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
suryaveeryadav/Python-3.4.0
7,026
Modules/_ctypes/libffi/src/m68k/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2012 Alan Hourihane Copyright (c) 1998, 2012 Andreas Schwab Copyright (c) 2008 Red Hat, Inc. Copyright (c) 2012 Thorsten Glaser m68k Foreign Function Interface Permission is hereby granted, free...
suryaveeryadav/Python-3.4.0
8,770
Modules/_ctypes/libffi/src/microblaze/sysv.S
/* ----------------------------------------------------------------------- sysv.S - Copyright (c) 2012, 2013 Xilinx, Inc MicroBlaze Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software...
suryaveeryadav/Python-3.4.0
7,414
Modules/_ctypes/libffi/src/sparc/v9.S
/* ----------------------------------------------------------------------- v9.S - Copyright (c) 2000, 2003, 2004, 2008 Red Hat, Inc. SPARC 64-bit Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
suryaveeryadav/Python-3.4.0
7,406
Modules/_ctypes/libffi/src/sparc/v8.S
/* ----------------------------------------------------------------------- v8.S - Copyright (c) 2013 The Written Word, Inc. Copyright (c) 1996, 1997, 2003, 2004, 2008 Red Hat, Inc. SPARC Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of thi...
suse-207/Learn-Ros
1,895
04_safe_globals/src/_arch/aarch64/cpu/boot.s
// SPDX-License-Identifier: MIT OR Apache-2.0 // // Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com> //-------------------------------------------------------------------------------------------------- // Definitions //-----------------------------------------------------------------------------------...
suse-207/Learn-Ros
1,895
02_runtime_init/src/_arch/aarch64/cpu/boot.s
// SPDX-License-Identifier: MIT OR Apache-2.0 // // Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com> //-------------------------------------------------------------------------------------------------- // Definitions //-----------------------------------------------------------------------------------...
suse-207/Learn-Ros
1,895
03_hacky_hello_world/src/_arch/aarch64/cpu/boot.s
// SPDX-License-Identifier: MIT OR Apache-2.0 // // Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com> //-------------------------------------------------------------------------------------------------- // Definitions //-----------------------------------------------------------------------------------...
SYQ1037/Smart-Tea-Garden-Robot-System
29,171
keil2/(remote)/single(remote)/CORE/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.4.0 ;* @date : 04-August-2014 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-ARM ...
t-88/fun
10,603
ctfs/pwnycup/rev/arm/main.s
.arch armv8-a .file "main.c" .text .align 2 .global Transform .type Transform, %function Transform: .LFB6: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp str x0, [sp, 40] str w1, [sp, 36] str x2, [sp, 24] adrp x0, :got:__stack_chk_g...
taidamai/Highmance
1,854
examples/a.s
.file "a.c" .text .globl amazing_func .def amazing_func; .scl 2; .type 32; .endef .seh_proc amazing_func amazing_func: pushq %rbp .seh_pushreg %rbp movq %rsp, %rbp .seh_setframe %rbp, 0 subq $16, %rsp .seh_stackalloc 16 .seh_endprologue movl %ecx, 16(%rbp) movl 16(%rbp), %eax movl %eax, -4(%rbp) movl -4...
tatetian/atc25-artifact-evaluation
2,603
test/apps/fork/fork.S
# SPDX-License-Identifier: MPL-2.0 # FIXME: WNOHANG option currently does not work properly without preemption, so we have temporarily # removed it. Once preemption is supported, the following macro can be uncommented to add the WNOHANG # option back. # #define PREEMPTION_ENABLE .global _start .section .text _star...
tatetian/atc25-artifact-evaluation
2,554
ostd/libs/linux-bzimage/setup/src/x86/header.S
/* SPDX-License-Identifier: MPL-2.0 */ // The compatibility file for the Linux x86 Boot Protocol. // See https://www.kernel.org/doc/html/v5.6/x86/boot.html for // more information on the Linux x86 Boot Protocol. // The bootloader may fill some fields at runtime, which can // be read by the kernel (via `boot_params.hd...
tatetian/atc25-artifact-evaluation
3,171
ostd/libs/linux-bzimage/setup/src/x86/amd64_efi/setup.S
/* SPDX-License-Identifier: MPL-2.0 */ // The load address of the setup section is CODE32_START (0x100000). // See the linker script. .section ".setup", "ax" CODE32_START = 0x100000 .code32 .global entry_legacy32 entry_legacy32: // This is the 32-bit Linux legacy entry point. // Not supported. However, there...
tatetian/atc25-artifact-evaluation
1,684
ostd/libs/linux-bzimage/setup/src/x86/legacy_i386/setup.S
/* SPDX-License-Identifier: MPL-2.0 */ // The load address of the setup section is CODE32_START (0x100000). // See the linker script. .section ".setup", "ax" .code32 .global entry_legacy32 entry_legacy32: // This is the 32-bit Linux legacy entry point. // // Arguments: // RSI: struct boot_params *bp ...
tatetian/atc25-artifact-evaluation
5,411
ostd/src/arch/x86/boot/ap_boot.S
/* SPDX-License-Identifier: MPL-2.0 */ // The boot routine executed by the application processor. .global ap_boot_from_real_mode .global ap_boot_from_long_mode .section ".ap_boot", "awx" .align 4096 IA32_APIC_BASE_MSR = 0x1B IA32_X2APIC_APICID_MSR = 0x802 IA32_EFER_MSR = 0xC0000080 XAPIC_APICID_MMIO_ADDR = 0xFEE00...
tatetian/atc25-artifact-evaluation
9,694
ostd/src/arch/x86/boot/bsp_boot.S
/* SPDX-License-Identifier: MPL-2.0 */ // The boot routine executed by the bootstrap processor. // The boot header, initial boot setup code, temporary GDT and page tables are // in the boot section. The boot section is mapped writable since kernel may // modify the initial page table. .section ".bsp_boot", "awx" .cod...
tatetian/atc25-artifact-evaluation
3,012
ostd/src/arch/x86/trap/trap.S
/* SPDX-License-Identifier: MPL-2.0 OR MIT * * The original source code is from [trapframe-rs](https://github.com/rcore-os/trapframe-rs), * which is released under the following license: * * SPDX-License-Identifier: MIT * * Copyright (c) 2020 - 2024 Runji Wang * * We make the following new changes: * * Add th...
tatetian/atc25-artifact-evaluation
2,967
ostd/src/arch/x86/trap/syscall.S
/* SPDX-License-Identifier: MPL-2.0 OR MIT * * The original source code is from [trapframe-rs](https://github.com/rcore-os/trapframe-rs), * which is released under the following license: * * SPDX-License-Identifier: MIT * * Copyright (c) 2020 - 2024 Runji Wang * * We make the following new changes: * * Skip s...
tatetian/atc25-artifact-evaluation
1,253
ostd/src/arch/x86/boot/multiboot2/header.S
/* SPDX-License-Identifier: MPL-2.0 */ // This is the GNU Multiboot 2 header. // Reference: https://www.gnu.org/software/grub/manual/multiboot2/html_node/Index.html//Index .section ".multiboot2_header", "a" .code32 // Macros for cleaner code in the header fields. MB2_MAGIC = 0xE85250D6 MB2_ARCHITECTURE = 0 // 32-bit ...
tatetian/atc25-artifact-evaluation
1,388
ostd/src/arch/riscv/boot/boot.S
/* SPDX-License-Identifier: MPL-2.0 */ .section .text.entry .globl _start _start: # Arguments passed from SBI: # a0 = hart id # a1 = device tree paddr (not touched) # 1. enable paging # setting up 1st pagetable # entry = (PPN(boot_pagetable_2nd) << 10) | 0x01 # V la t1, boot_page...
tatetian/atc25-artifact-evaluation
4,069
ostd/src/arch/riscv/trap/trap.S
/* SPDX-License-Identifier: MPL-2.0 OR MIT * * The original source code is from [trapframe-rs](https://github.com/rcore-os/trapframe-rs), * which is released under the following license: * * SPDX-License-Identifier: MIT * * Copyright (c) 2020 - 2024 Runji Wang * * We make the following new changes: * * Add th...
Teademia/2024oskernel
1,640
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose r...
telecran-telecrit/cpython
7,234
Modules/_ctypes/libffi_osx/powerpc/ppc-darwin_closure.S
#if defined(__ppc__) /* ----------------------------------------------------------------------- ppc-darwin_closure.S - Copyright (c) 2002, 2003, 2004, Free Software Foundation, Inc. based on ppc_closure.S PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining a co...
telecran-telecrit/cpython
9,719
Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.S
#if defined(__ppc__) || defined(__ppc64__) /* ----------------------------------------------------------------------- ppc-darwin.S - Copyright (c) 2000 John Hornkvist Copyright (c) 2004 Free Software Foundation, Inc. PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person ...
telecran-telecrit/cpython
9,914
Modules/_ctypes/libffi_osx/powerpc/ppc64-darwin_closure.S
#if defined(__ppc64__) /* ----------------------------------------------------------------------- ppc64-darwin_closure.S - Copyright (c) 2002, 2003, 2004, Free Software Foundation, Inc. based on ppc_closure.S PowerPC Assembly glue. Permission is hereby granted, free of charge, to any person obtaining ...
telecran-telecrit/cpython
8,955
Modules/_ctypes/libffi_osx/x86/x86-darwin.S
#ifdef __i386__ /* ----------------------------------------------------------------------- darwin.S - Copyright (c) 1996, 1998, 2001, 2002, 2003 Red Hat, Inc. X86 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
telecran-telecrit/cpython
11,660
Modules/_ctypes/libffi_osx/x86/darwin64.S
/* ----------------------------------------------------------------------- darwin64.S - Copyright (c) 2006 Free Software Foundation, Inc. derived from unix64.S x86-64 Foreign Function Interface for Darwin. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
T-Eric/rustos
4,450
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 19 .quad app_0_start .quad app_1_start .quad app_2_start .quad app_3_start .quad app_4_start .quad app_5_start .quad app_6_start .quad app_7_start .quad app_8_start .quad app_9_start .quad app_10_start ...
teskje/teaos
1,779
teaos/teaos/src/exception/vector.S
.macro vector name .balign 128 .vector\@: stp x18, x30, [sp, #-16]! stp x16, x17, [sp, #-16]! stp x14, x15, [sp, #-16]! stp x12, x13, [sp, #-16]! stp x10, x11, [sp, #-16]! stp x8, x9, [sp, #-16]! stp x6, x7, [sp, #-16]! stp x4, x5, [sp, #-16]! stp x2, x3, [sp, #-16]! ...
testaquatic/concurrent_programming
1,068
ch06/green_thread/asm/context.S
#define SET_CONTEXT set_context #define SWITCH_CONTEXT switch_context .global SET_CONTEXT .global SWITCH_CONTEXT .text .align 4 SET_CONTEXT: pop %rbp xor %eax, %eax /* Direct invocation returns 0 */ movq %rbx, (%rdi) movq %rbp, 8(%rdi) movq %r12, 16(%rdi...
TexasInstruments/mcupsdk-rm-pm-hal
3,327
lpm/cache.S
/* * Cache support for low power functionality * * * Copyright (C) 2024, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of sourc...
TexasInstruments/mcupsdk-rm-pm-hal
4,985
pm/arch/arm/lib/umull16.S
;***************************************************************************** ;* umull16.asm - 16 bit code 32x32 -> 64 multiply. v15.12.3 * ;* * ;* Copyright (c) 2012-2016 Texas Instruments Incorporated * ;* h...
TexasInstruments/mcupsdk-rm-pm-hal
4,124
pm/arch/arm/lib/ll_lsl16.S
;****************************************************************************** ;* LL_LSL16.ASM - 16 BIT STATE - * ;* * ;* Copyright (c) 1996 Texas Instruments Incorporated * ...
TexasInstruments/mcupsdk-rm-pm-hal
4,255
pm/arch/arm/lib/ll_mul16.S
;****************************************************************************** ;* LL_MUL16.ASM - 16 BIT STATE - v15.12.3 * ;* * ;* Copyright (c) 1996-2016 Texas Instruments Incorporated * ...
TexasInstruments/mcupsdk-rm-pm-hal
4,128
pm/arch/arm/lib/ll_lsr16.S
;****************************************************************************** ;* LL_LSR16.ASM - 16 BIT STATE - v15.12.3 * ;* * ;* Copyright (c) 1996-2016 Texas Instruments Incorporated * ...
TexasInstruments/mcupsdk-rm-pm-hal
1,226
app/linkercmd/arm_stub.ld.S
/* * DMSC firmware * * Cortex-M3 (CM3) firmware for security * * Copyright (C) 2017-2019 Texas Instruments Incorporated - http://www.ti.com/ * * This software is licensed under the standard terms and conditions in the * Texas Instruments Incorporated Technology and Software Publicly * Available Software Licens...
TexasInstruments/mcupsdk-rm-pm-hal
7,995
app/dmstub/entry.S
/* * Copyright (C) 2021-2024 Texas Instruments Incorporated * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditi...
thaliaarchi/unix-1972-tapes
6,267
s1/block1.s
/ Block 1 of s1-bits / It was written by /usr/sys/maki.s in s2 and was populated from the contents of / buf when that program was run. / Documented in V1 and V2 bproc(7). / This version appears to be between settings in the V1 and V2 manuals. It has / the following settings: / * ??? V2 (was 173700 or 73700 in V1) /...
thaliaarchi/unix-1972-tapes
8,018
s1/block0.s
/ Block 0 of s1-bits / It was assembled from /usr/sys/maki.s in s2, starting at label vcboot, and / written by the same program. Documented in V1 and V2 bproc(7). / This reads data from the tape, writes it to disk, then executes it. / / This program is from bytes 0-290 of the tape. It copies 32768 bytes from the / ta...
TheCatster/mros
10,370
asm/x86_64/kernel_entry.S
/* * kernel_entry.S - kernel initialization, multiboot2 (Assignment 1, CSE 597) * Copyright 2023 Ruslan Nikolaev <rnikola@psu.edu> */ .global _start, kernel_stack .extern kernel_start .code32 .text header_start: .long 0xe85250d6 /* multiboot2 */ .long 0 /* x86 32-bit */ .long header_end - h...
theoparis/rust-os
3,187
kernel/src/multiboot.s
# Bootstrapping from 32-bit with the Multiboot specification. # See https://www.gnu.org/software/grub/manual/multiboot/multiboot.html .section .text.entry .code32 .global _start _start: mov ecx, {mb_magic} cmp ecx, eax jnz 1f mov edi, ebx # arg1: multiboot info jmp entry3...
TheRetroMike/astrix-node
6,073
crypto/hashes/src/keccakf1600_x86-64.s
# Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl .text .type __KeccakF1600,@function .align 32 __KeccakF1600: .cfi_startproc .byte 0xf3,0x0f,0x1e,0xfa movq 60(%rdi),%rax movq 68(%rdi),%rbx movq 76(%rdi),%rcx movq 84(%rdi),%rdx movq 92(%rdi),%rbp jmp .Loop .align 32 .Loo...
TheRetroMike/astrix-node
5,802
crypto/hashes/src/keccakf1600_x86-64-osx.s
# Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl .text .p2align 5 __KeccakF1600: .cfi_startproc .byte 0xf3,0x0f,0x1e,0xfa movq 60(%rdi),%rax movq 68(%rdi),%rbx movq 76(%rdi),%rcx movq 84(%rdi),%rdx movq 92(%rdi),%rbp jmp L$oop .p2align 5 L$oop: movq -100(%rdi),%r8 mo...
Thommimp/cpu_rust
1,610
tests/task3/loop.s
.file "loop.c" .option nopic .attribute arch, "rv32i2p0" .attribute unaligned_access, 0 .attribute stack_align, 16 .text #APP li sp, 0x100000 jal main li a7, 10 ecall #NO_APP .align 2 .globl sum .type sum, @function sum: addi sp,sp,-48 sw s0,44(sp) addi s0,sp,48 sw a0,-36(s0) sw a1,-40(s0) sw zero,...
Thoq-jar/folia
1,095
demo/example.s
.start _start .data hello_msg: .string "Hello, World!\n" prompt_msg: .string "Enter a number: " result_msg: .string "You entered: " newline: .string "\n" .text _start: MOV r1, hello_msg ; print hello CALL print_string MOV r1, prompt_msg ; prompt user CALL print_stri...
Thoq-jar/folia
1,342
demo/calculator/main.s
.start _start .data welcome_msg: .string "Simple Calculator\n" menu_msg: .string "1. Add\n2. Subtract\n3. Multiply\n4. Divide\n5. Exit\nChoice: " num1_prompt: .string "Enter first number: " num2_prompt: .string "Enter second number: " result_msg: .string "Result: " div_error_msg: .string "Error...
Tim-C1/occlum-he
2,830
deps/rust-sgx-sdk/sgx_unwind/libunwind/src/x86_64/setcontext.S
/* libunwind - a platform-independent unwind library Copyright (C) 2007 Google, Inc Contributed by Arun Sharma <arun.sharma@google.com> Copyright (C) 2010 Konstantin Belousov <kib@freebsd.org> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this s...
Tim-C1/occlum-he
4,427
deps/rust-sgx-sdk/sgx_unwind/libunwind/src/x86_64/getcontext.S
/* libunwind - a platform-independent unwind library Copyright (C) 2008 Google, Inc Contributed by Paul Pluzhnikov <ppluzhnikov@google.com> Copyright (C) 2010 Konstantin Belousov <kib@freebsd.org> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of th...
Tim-C1/occlum-he
1,520
deps/rust-sgx-sdk/sgx_unwind/libunwind/src/x86_64/longjmp.S
/* libunwind - a platform-independent unwind library Copyright (C) 2004-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
Tim-C1/occlum-he
1,438
deps/rust-sgx-sdk/sgx_unwind/libunwind/src/x86_64/siglongjmp.S
/* libunwind - a platform-independent unwind library Copyright (C) 2004 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
Tim-C1/occlum-he
1,386
src/libos/src/util/mpx_util_x86-64.S
.file "mpx_util_x86-64.S" /* For bnd0 */ .global __mpx_bndmk0 .type __mpx_bndmk0, @function __mpx_bndmk0: bndmk (%rdi, %rsi, 1), %bnd0 ret .global __mpx_bndcl0 .type __mpx_bndcl0, @function __mpx_bndcl0: bndcl %rdi, %bnd0 ret .global __mpx_bndcu0 .type __mpx_bndcu0, @func...
Tim-C1/occlum-he
4,730
src/libos/src/syscall/syscall_entry_x86-64.S
#define __ASSEMBLY__ #include "task.h" .file "syscall_entry_x86-64.S" .global __occlum_syscall_linux_pku_abi .type __occlum_syscall_linux_pku_abi, @function __occlum_syscall_linux_pku_abi: // Skip the red zone aera (128 bytes according to x86_64 System V ABI) // Use `lea` here since it does not mo...
Tim-C1/occlum-he
2,094
src/libos/src/process/task/task_x86-64.S
#define __ASSEMBLY__ #include "task.h" .file "task_x86-64.S" .global __set_current_task .type __set_current_task, @function __set_current_task: movq %rdi, %gs:(TD_TASK_OFFSET) ret .global __get_current_task .type __get_current_task, @function __get_current_task: movq %gs:(TD_TASK_OFFS...
Tinuvile/NimlothOS
1,159
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .global __alltraps .global __restore .align 2 __alltraps: # 交换 sscratch and sp(x2) 寄存器内容 csrrw sp, sscratch, sp # 现在sp->kernel stack,sscratch->user stack # 保存通用寄存器,...
tjcampanella/rorth
2,558
example-asm/digit.s
.global _start .align 2 .text print: adrp x0, num@PAGE add x0, x0, num@PAGEOFF // Load value from the stack. ldr x1, [sp], #16 // Convert number in x1 to its ASCII representation mov x2, #10 // Base 10 mov x3, #19 // Initialize index convert_loop: udiv x4, ...
tjulitianyi1997/AscendProjects
29,171
robot/ascend_car/Ascend-智能车底盘控制源码及说明/Ascend-底盘控制stm32源码/CORE/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.4.0 ;* @date : 04-August-2014 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-ARM ...
tjulitianyi1997/AscendProjects
6,530
robot/ascend_car/Ascend-智能车底盘控制源码及说明/Ascend-底盘控制stm32源码/FreeRTOS/portable/RVDS/ARM_CA9/portASM.s
;/* ; FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. ; All rights reserved ; ; ; *************************************************************************** ; * * ; * FreeRTOS tutorial books are available in pdf and...
tjulitianyi1997/AscendProjects
5,593
robot/ascend_car/Ascend-智能车底盘控制源码及说明/Ascend-底盘控制stm32源码/FreeRTOS/portable/RVDS/ARM7_LPC21xx/portASM.s
;/* ; FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. ; All rights reserved ; ; ; *************************************************************************** ; * * ; * FreeRTOS tutorial books are available in pdf an...
tjulitianyi1997/AscendProjects
12,458
robot/ascend_car/Ascend-机械臂控制源码及说明/Ascend_project/CORE/startup_stm32f10x_md.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Medium Density Devices vector table for MDK-...
tjulitianyi1997/AscendProjects
15,145
robot/ascend_car/Ascend-机械臂控制源码及说明/Ascend_project/CORE/startup_stm32f10x_hd.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_hd.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x High Density Devices vector table for MDK-AR...
tpunix/TLINK
14,169
Main/start.S
/* startup for CH32V305 */ #include "riscv.h" .macro labs reg, symbol lui \reg, %hi(\symbol) addi \reg, \reg, %lo(\symbol) .endm .section ".text.entry" .globl _start _start: .option push .option norelax /* reloc data */ la a0, _data_start_lma la a0, _data_start_lma labs a2, _data_start la a1, _dat...
trevorfar/MachineLearning
2,508
extra/assembly/rocm/rdna3/prog.s
.global _start _start: .rodata .align 0x10 .global code.kd .type code.kd,STT_OBJECT # amd_kernel_code_t (must be at 0x440 for kernel_code_entry_byte_offset to be right) code.kd: # amd_kernel_..., amd_machine_... .long 0,0,0,0 # kernel_code_entry_byte_offset, kernel_code_prefetch_byte_offset .long 0x00000bc0,0x00000000,...
Trust04zh/asterinas
1,106
framework/libs/linux-bzimage/setup/src/x86/amd64_efi/setup.S
/* SPDX-License-Identifier: MPL-2.0 */ .section ".setup", "ax" .code64 // start_of_setup32 should be loaded at CODE32_START, which is our base. .global start_of_setup32 start_of_setup32: // `efi_handover_setup_entry64` should be at efi_handover_setup_entry32 + 0x200, but // we could provide the 32 bit dummy entry poi...
Trust04zh/asterinas
2,407
framework/libs/linux-bzimage/setup/src/x86/amd64_efi/header.S
/* SPDX-License-Identifier: MPL-2.0 */ // The compatibility file for the Linux x86 Boot Protocol. // See https://www.kernel.org/doc/html/v5.6/x86/boot.html for // more information on the Linux x86 Boot Protocol. // Some of the fields filled with a 0xab* values should be filled // by the torjan builder. // Asterinas w...
Trust04zh/asterinas
2,165
framework/libs/linux-bzimage/setup/src/x86/legacy_i386/header.S
/* SPDX-License-Identifier: MPL-2.0 */ // The compatibility file for the Linux x86 Boot Protocol. // See https://www.kernel.org/doc/html/v5.6/x86/boot.html for // more information on the Linux x86 Boot Protocol. // Some of the fields filled with a 0xab* values should be filled // by the torjan builder. // Asterinas w...
Trust04zh/asterinas
1,697
framework/aster-frame/src/arch/riscv/fpu.S
/* SPDX-License-Identifier: MPL-2.0 */ .text .global fstate_save fstate_save: # (buf: *mut FpRegs) li t2, 0x00006000 # FS in SSCAUSE csrrs t1, scause, t2 frcsr t0 fsd f0, 0(a0) fsd f1, 8(a0) fsd f2, 16(a0) fsd f3, 24(a0) fsd f4, 32(a0) fsd f5, 40(a0) fsd f6, 48(a0) fsd f7, 56...
Trust04zh/asterinas
8,486
framework/aster-frame/src/arch/x86/boot/boot.S
/* SPDX-License-Identifier: MPL-2.0 */ // The boot header, initial boot setup code, temporary GDT and page tables are // in the boot section. The boot section is mapped writable since kernel may // modify the initial page table. .section ".boot", "awx" .code32 // With every entry types we could go through common pagi...
Trust04zh/asterinas
1,252
framework/aster-frame/src/arch/x86/boot/multiboot2/header.S
/* SPDX-License-Identifier: MPL-2.0 */ // This is the GNU Multiboot 2 header. // Reference: https://www.gnu.org/software/grub/manual/multiboot2/html_node/Index.html//Index .section ".multiboot2_header", "a" .code32 // Macros for cleaner code in the header fields. MB2_MAGIC = 0xE85250D6 MB2_ARCHITECTURE = 0 // 32-bit ...