repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
Engineer-Guild-Hackathon/team-18-app | 6,242 | executorch/backends/xnnpack/third-party/XNNPACK/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neon-ld128-acc2.S | // clang-format off
// Auto-generated file. Do not edit!
// Template: src/f32-gemm/1x8-aarch64-neon-ld128-acc2.S.in
// Generator: tools/xngen
//
// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#inclu... |
Engineer-Guild-Hackathon/team-18-app | 3,938 | executorch/backends/xnnpack/third-party/XNNPACK/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld64-prfm.S | // clang-format off
// Auto-generated file. Do not edit!
// Template: src/f32-gemm/1x8-aarch64-neonfma-ld64.S.in
// Generator: tools/xngen
//
// Copyright 2020 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include ... |
Engineer-Guild-Hackathon/team-18-app | 5,734 | executorch/backends/xnnpack/third-party/XNNPACK/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld64-acc4.S | // clang-format off
// Auto-generated file. Do not edit!
// Template: src/f32-gemm/1x8-aarch64-neonfma-ld64-acc4.S.in
// Generator: tools/xngen
//
// Copyright 2020 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#inc... |
Engineer-Guild-Hackathon/team-18-app | 10,122 | executorch/backends/xnnpack/third-party/XNNPACK/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S | // clang-format off
// Auto-generated file. Do not edit!
// Template: src/f32-gemm/4x8-aarch64-neonfma-ld128.S.in
// Generator: tools/xngen
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include... |
Engineer-Guild-Hackathon/team-18-app | 3,976 | executorch/backends/xnnpack/third-party/XNNPACK/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld64-acc2.S | // clang-format off
// Auto-generated file. Do not edit!
// Template: src/f32-gemm/1x8-aarch64-neonfma-ld64-acc2.S.in
// Generator: tools/xngen
//
// Copyright 2020 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#inc... |
Enuwbt/cooperative_green_thread | 763 | asm/context.S | #define SET_CONTEXT set_context
#define SWITCH_CONTEXT switch_context
.global SET_CONTEXT
.global SWITCH_CONTEXT
SET_CONTEXT:
stp d8, d9, [x0]
stp d10, d11, [x0, #16]
stp d12, d13, [x0, #16 * 2]
stp d14, d15, [x0, #16 * 3]
stp d19, d20, [x0, #16 * 4]
stp x21, x22, [x0, #16 * 5]
stp x23, x2... |
epiglottis-cartilage/rCore | 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... |
epita-rs/Rustorrent | 44 | src/testsuite/test_material/test1/asm/fibo.S | .section .text
.global fibo
fibo:
ret
|
erod4/Senior-Design | 13,812 | firmware/Core/Startup/startup_stm32g491retx.s | /**
******************************************************************************
* @file startup_stm32g491xx.s
* @author MCD Application Team
* @brief STM32G491xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - S... |
erod4/Senior-Design | 13,812 | ADC/Core/Startup/startup_stm32g491retx.s | /**
******************************************************************************
* @file startup_stm32g491xx.s
* @author MCD Application Team
* @brief STM32G491xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - S... |
eternalcomet/test | 171 | apps/nimbos/c/lib/arch/riscv/crt.S | .text
.globl _start
_start:
.option push
.option norelax
lla gp, __global_pointer$
.option pop
mv a0, sp
and sp, sp, -16
tail __start_main
|
eternalcomet/test | 511 | apps/nimbos/c/lib/arch/riscv/clone.S | // __clone(func, arg, stack)
// a0, a1, a2
// syscall(SYS_clone, stack)
// a7, a0
.global __clone
.hidden __clone
__clone:
andi a2, a2, -16
addi a2, a2, -16
sd a0, 0(a2)
sd a1, 8(a2)
// syscall(SYSCALL_CLONE, newsp)
mv a0, a2
li a7, 56... |
eternalcomet/test | 117 | apps/nimbos/c/lib/arch/aarch64/crt.S | .text
.globl _start
_start:
mov x29, #0
mov x30, #0
mov x0, sp
and sp, x0, #-16
b __start_main
|
eternalcomet/test | 434 | apps/nimbos/c/lib/arch/aarch64/clone.S | // __clone(func, arg, stack)
// x0, x1, x2
// syscall(SYS_clone, stack)
// x8, x0
.global __clone
.hidden __clone
__clone:
and x2, x2, #-16
stp x0, x1, [x2, #-16]!
// syscall(SYSCALL_CLONE, newsp)
mov x0, x2
mov x8, #56
svc #0
cbz x0, 1f
// parent
ret
... |
eternalcomet/test | 121 | apps/nimbos/c/lib/arch/x86_64/crt.S | .text
.globl _start
_start:
xor %rbp, %rbp
mov %rsp, %rdi
andq $-16, %rsp
call __start_main
|
eternalcomet/test | 574 | apps/nimbos/c/lib/arch/x86_64/clone.S | // __clone(func, arg, stack)
// rdi, rsi, rdx
// syscall(SYS_clone, stack)
// rax, rdi
.global __clone
.hidden __clone
__clone:
// push arg (%rsi) to stack, set func (%rdi) to %r9
and $-16, %rdx
sub $8, %rdx
mov %rsi, (%rdx)
mov %rdi, %r9
// syscall(SYSCALL_CLONE, n... |
eternalcomet/test | 198 | apps/nimbos/c/lib/arch/loongarch64/crt.S | .section .text.entry
.globl _start
_start:
move $fp, $zero
move $a0, $sp
.weak _DYNAMIC
.hidden _DYNAMIC
la.local $a1, _DYNAMIC
bstrins.d $sp, $zero, 3, 0
b __start_main
|
eternalcomet/test | 961 | apps/nimbos/c/lib/arch/loongarch64/clone.S | #__clone(func, stack, flags, arg, ptid, tls, ctid)
# a0, a1, a2, a3, a4, a5, a6
# sys_clone(flags, stack, ptid, ctid, tls)
# a0, a1, a2, a3, a4
.global __clone
.hidden __clone
.type __clone,@function
__clone:
bstrins.d $a1, $zero, 3, 0 #stack to 16 align
# Save function poin... |
eternalcomet/test | 2,095 | .arceos/modules/axhal/linker.lds.S | OUTPUT_ARCH(%ARCH%)
BASE_ADDRESS = %KERNEL_BASE%;
ENTRY(_start)
SECTIONS
{
. = BASE_ADDRESS;
_skernel = .;
.text : ALIGN(4K) {
_stext = .;
*(.text.boot)
*(.text .text.*)
. = ALIGN(4K);
_etext = .;
}
_srodata = .;
.rodata : ALIGN(4K) {
*(.rodata... |
eternalcomet/undefined-os-final | 171 | apps/nimbos/c/lib/arch/riscv/crt.S | .text
.globl _start
_start:
.option push
.option norelax
lla gp, __global_pointer$
.option pop
mv a0, sp
and sp, sp, -16
tail __start_main
|
eternalcomet/undefined-os-final | 511 | apps/nimbos/c/lib/arch/riscv/clone.S | // __clone(func, arg, stack)
// a0, a1, a2
// syscall(SYS_clone, stack)
// a7, a0
.global __clone
.hidden __clone
__clone:
andi a2, a2, -16
addi a2, a2, -16
sd a0, 0(a2)
sd a1, 8(a2)
// syscall(SYSCALL_CLONE, newsp)
mv a0, a2
li a7, 56... |
eternalcomet/undefined-os-final | 117 | apps/nimbos/c/lib/arch/aarch64/crt.S | .text
.globl _start
_start:
mov x29, #0
mov x30, #0
mov x0, sp
and sp, x0, #-16
b __start_main
|
eternalcomet/undefined-os-final | 434 | apps/nimbos/c/lib/arch/aarch64/clone.S | // __clone(func, arg, stack)
// x0, x1, x2
// syscall(SYS_clone, stack)
// x8, x0
.global __clone
.hidden __clone
__clone:
and x2, x2, #-16
stp x0, x1, [x2, #-16]!
// syscall(SYSCALL_CLONE, newsp)
mov x0, x2
mov x8, #56
svc #0
cbz x0, 1f
// parent
ret
... |
eternalcomet/undefined-os-final | 121 | apps/nimbos/c/lib/arch/x86_64/crt.S | .text
.globl _start
_start:
xor %rbp, %rbp
mov %rsp, %rdi
andq $-16, %rsp
call __start_main
|
eternalcomet/undefined-os-final | 574 | apps/nimbos/c/lib/arch/x86_64/clone.S | // __clone(func, arg, stack)
// rdi, rsi, rdx
// syscall(SYS_clone, stack)
// rax, rdi
.global __clone
.hidden __clone
__clone:
// push arg (%rsi) to stack, set func (%rdi) to %r9
and $-16, %rdx
sub $8, %rdx
mov %rsi, (%rdx)
mov %rdi, %r9
// syscall(SYSCALL_CLONE, n... |
eternalcomet/undefined-os-final | 198 | apps/nimbos/c/lib/arch/loongarch64/crt.S | .section .text.entry
.globl _start
_start:
move $fp, $zero
move $a0, $sp
.weak _DYNAMIC
.hidden _DYNAMIC
la.local $a1, _DYNAMIC
bstrins.d $sp, $zero, 3, 0
b __start_main
|
eternalcomet/undefined-os-final | 961 | apps/nimbos/c/lib/arch/loongarch64/clone.S | #__clone(func, stack, flags, arg, ptid, tls, ctid)
# a0, a1, a2, a3, a4, a5, a6
# sys_clone(flags, stack, ptid, ctid, tls)
# a0, a1, a2, a3, a4
.global __clone
.hidden __clone
.type __clone,@function
__clone:
bstrins.d $a1, $zero, 3, 0 #stack to 16 align
# Save function poin... |
eternalcomet/test | 2,358 | .arceos/modules/axhal/src/arch/riscv/trap.S | .macro SAVE_REGS, from_user
addi sp, sp, -{trapframe_size}
PUSH_GENERAL_REGS
csrr t0, sepc
csrr t1, sstatus
csrrw t2, sscratch, zero // save sscratch (sp) and zero it
STR t0, sp, 31 // tf.sepc
STR t1, sp, 32 // tf.sstatus
STR... |
eternalcomet/test | 2,989 | .arceos/modules/axhal/src/arch/aarch64/trap.S | .macro SAVE_REGS
sub sp, sp, {trapframe_size}
stp x0, x1, [sp]
stp x2, x3, [sp, 2 * 8]
stp x4, x5, [sp, 4 * 8]
stp x6, x7, [sp, 6 * 8]
stp x8, x9, [sp, 8 * 8]
stp x10, x11, [sp, 10 * 8]
stp x12, x13, [sp, 12 * 8]
stp x14, x15, [sp, 14 * 8]
stp ... |
eternalcomet/test | 1,397 | .arceos/modules/axhal/src/arch/x86_64/syscall.S | .section .text
.code64
syscall_entry:
swapgs // switch to kernel gs
mov gs:[offset __PERCPU_USER_RSP_OFFSET], rsp // save user rsp
mov rsp, gs:[offset __PERCPU_TSS + {tss_rsp0_offset}] // switch to kernel stack
sub rsp, 8 ... |
eternalcomet/test | 1,627 | .arceos/modules/axhal/src/arch/x86_64/trap.S | .equ NUM_INT, 256
.altmacro
.macro DEF_HANDLER, i
.Ltrap_handler_\i:
.if \i == 8 || (\i >= 10 && \i <= 14) || \i == 17
# error code pushed by CPU
push \i # interrupt vector
jmp .Ltrap_common
.else
push 0 # fill in error code in TrapFrame
push \i # interrupt ... |
eternalcomet/test | 1,791 | .arceos/modules/axhal/src/arch/loongarch64/trap.S | .macro SAVE_REGS, from_user
move $t0, $sp
.if \from_user == 1
csrrd $sp, KSAVE_KSP // restore kernel sp
addi.d $sp, $sp, -{trapframe_size}
STD $tp, $sp, 2
STD $r21, $sp, 21
csrrd $tp, KSAVE_TP
csrrd $r21, KSAVE_R21
.else
addi.d $sp, $sp, -{trap... |
eternalcomet/test | 1,965 | .arceos/modules/axhal/src/platform/x86_pc/ap_start.S | # Boot application processors into the protected mode.
# Each non-boot CPU ("AP") is started up in response to a STARTUP
# IPI from the boot CPU. Section B.4.2 of the Multi-Processor
# Specification says that the AP will start in real mode with CS:IP
# set to XY00:0000, where XY is an 8-bit value sent with the
# STAR... |
eternalcomet/test | 4,325 | .arceos/modules/axhal/src/platform/x86_pc/multiboot.S | # Bootstrapping from 32-bit with the Multiboot specification.
# See https://www.gnu.org/software/grub/manual/multiboot/multiboot.html
.section .text.boot
.code32
.global _start
_start:
mov edi, eax # arg1: magic: 0x2BADB002
mov esi, ebx # arg2: multiboot info
jmp bsp_entry32
.bal... |
eternalcomet/test | 2,544 | .arceos/tools/raspi4/chainloader/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
//-----------------------------------------------------------------------------------... |
ethan-samplecode50/Ziren | 8,885 | crates/zkvm/entrypoint/src/memset.s | // This is musl-libc memset commit 5613a1486e6a6fc3988be6561f41b07b2647d80f:
//
// src/string/memset.c
//
// This was compiled into assembly with:
//
// clang10 -target mips -O3 -S memset.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is licensed un... |
ethan-samplecode50/Ziren | 10,395 | crates/zkvm/entrypoint/src/memcpy.s | // This is musl-libc commit 3b0a370020c4d5b80ff32a609e5322b7760f0dc4:
//
// src/string/memcpy.c
//
// This was compiled into assembly with:
//
// clang -target mipsel -O3 -S memcpy.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is licensed under the... |
ethan-samplecode50/Ziren | 786 | crates/go-runtime/zkvm_runtime/syscall_mipsle.s | //go:build mipsle
// +build mipsle
TEXT ·SyscallWrite(SB), $0-24
MOVW $2, R2 // #define SYS_write 4004
MOVW fd+0(FP), R4
MOVW write_buf+4(FP), R5
MOVW nbytes+16(FP), R6
SYSCALL
MOVW R2, ret+0(FP)
RET
TEXT ·SyscallHintLen(SB), $0-4
MOVW $0xF0, R2 // #define SYS_hint_len 0xF0
SYSCALL... |
Evanev7/lang | 232 | rs/code/baby.s | .file "baby.c"
.text
.section .text.startup,"ax",@progbits
.p2align 4
.globl main
.type main, @function
main:
movl $2, %eax
ret
.size main, .-main
.ident "GCC: (GNU) 14.2.1 20241116"
.section .note.GNU-stack,"",@progbits
|
faaple/TestOS | 392 | src/link_app.S | .align 3
.section .data
.global _num_app
_num_app:
.quad 2
.quad app_0_start
.quad app_1_start
.quad app_1_end
.section .data
.global app_0_start
.global app_0_end
app_0_start:
.incbin "../user/bin/hello1.bin"
app_0_end:
.section .data
.global app_1_start
.globa... |
faaple/TestOS | 1,589 | 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
.globl __alltraps
.globl __restore
.align 2
__alltraps:
csrrw sp, sscratch, sp
# now sp->kernel stack, sscratch->user stack
# allocate a TrapContext on kernel stack
addi sp, s... |
FaintentDev/rpi-slint-baremetal | 6,263 | src/asm/boot.s | /***********************************************************************************************************************
* Raspberry Pi bootstrap code.
* This is the minimal preparation to brach into the "Rust" code line for further initialization
* and setup for the current kernel to be run at the Raspberry Pi.
* ... |
FaintentDev/rpi-slint-baremetal | 8,458 | src/asm/exception.s | .global __ExceptionVectorTable
// specify the constants used to passed to the generic exception handler to identify
// the type and context of the exception raised
.equ EXC_CURREL_SP0_Sync, 0x1
.equ EXC_CURREL_SP0_Irq, 0x2
.equ EXC_CURREL_SP0_Fiq, 0x3
.equ EXC_CURREL_SP0_SErr, 0x4
.equ EXC_CURREL_SPX_Sync, ... |
FashionablyNate/raspi4_rust_bootloader | 866 | src/boot.s |
.section .text._start
_start:
mrs x0, MPIDR_EL1 /* Read multiprocessor affinity register */
and x0, x0, {CONST_CORE_ID_MASK} /* Mask core id info */
/* If we're not on the boot core, wait indefinitely */
ldr x1, BOOT_CORE_ID
cmp x0, x1
b.ne .do_nothing
/* Grab start and end of uninitialized data section */
... |
fastest-sp1/sp1 | 8,450 | crates/zkvm/entrypoint/src/memset.s | // This is musl-libc memset commit 37e18b7bf307fa4a8c745feebfcba54a0ba74f30:
//
// src/string/memset.c
//
// This was compiled into assembly with:
//
// clang-14 -target riscv32 -march=rv32im -O3 -S memset.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a wh... |
fastest-sp1/sp1 | 11,855 | crates/zkvm/entrypoint/src/memcpy.s | // This is musl-libc commit 37e18b7bf307fa4a8c745feebfcba54a0ba74f30:
//
// src/string/memcpy.c
//
// This was compiled into assembly with:
//
// clang-14 -target riscv32 -march=rv32im -O3 -S memcpy.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is ... |
Fasamii/notes | 1,216 | ASM/notes/basics/generating-asm-from-c/loop.s | .file "loop.c"
.text
.section .rodata
.LC0:
.string "i is %i\n"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
leal 4(%esp), %ecx
.cfi_def_cfa 1, 0
andl $-16, %esp
pushl -4(%ecx)
pushl %ebp
movl %esp, %ebp
.cfi_escape 0x10,0x5,0x2,0x75,0
pushl %ebx
pushl %ecx
.cfi_escape 0xf,0x3,0... |
fawazadeniji123/Rust-Programming--The-Complete-Developer-s-Guide | 19,155 | exercises/activities/a8.s | .text
.file "a8.75f4988078fcc672-cgu.0"
.section .text._ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hdc5561e290b90f55E,"ax",@progbits
.p2align 4, 0x90
.type _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hdc5561e290b90f55E,@function
_ZN3std10sys_common9backtrace28__rust_begin_short_ba... |
fberlakovich/cmq-ae | 776 | Python/asm_trampoline.S | .text
.globl _Py_trampoline_func_start
# The following assembly is equivalent to:
# PyObject *
# trampoline(PyThreadState *ts, _PyInterpreterFrame *f,
# int throwflag, py_evaluator evaluator)
# {
# return evaluator(ts, f, throwflag);
# }
_Py_trampoline_func_start:
#ifdef __x86_64__
sub $8,... |
fedi-nabli/ARM-bare-metal-booting-for-QEMU | 597 | startup.S | .section ".text.boot"
.global _start
_start:
// Check processor ID is 0 (primary core)
mrs x0, mpidr_el1
and x0, x0, #0xFF
cbz x0, setup_stack
// If we're not on CPU0, wait forever
b wait_forever
setup_stack:
// Setup up stack before C code
ldr x0, =_start
mov sp, x0
// Clearn BSS section
ldr x... |
fedi-nabli/ARM-bare-metal-booting-for-QEMU | 386 | asm_funcs.S | .global asm_test_func
.section ".text"
// Simple function that multiplies two numbers
// x0, first parameter
// x1, second parameter
// result in x0
asm_test_func:
// Save the frame pointer and link register
stp x29, x30, [sp, #-16]!
mov x29, sp
// Multiply the two parameters
mul x0, x0, x1
// Restore t... |
FeeYo7/ross | 418 | kern/src/init/init.s | .section .text.init
.global _start
_start:
// read cpu affinity, start core 0, halt rest
mrs x1, mpidr_el1
and x1, x1, #3
cbz x1, 2f
1:
// core affinity != 0, halt it
wfe
b 1b
2:
// set the stack to start before our boot code
adr x1, _start
mov sp, x... |
FeeYo7/ross | 418 | boot/src/init/init.s | .section .text.init
.global _start
_start:
// read cpu affinity, start core 0, halt rest
mrs x1, mpidr_el1
and x1, x1, #3
cbz x1, 2f
1:
// core affinity != 0, halt it
wfe
b 1b
2:
// set the stack to start before our boot code
adr x1, _start
mov sp, x... |
fff1214/SoC-Final | 6,209 | Final/sdram/firmware/start_pico.S | /*
* Copyright 2018, Serge Bazanski <serge@bazanski.pl>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*/
#include "../extraops.S"
/*
* Interrupt vector.
*/
.global _start
_start:
.org 0x00000000 # Reset
j _crt0
.org 0x00000010 ... |
fff1214/SoC-Final | 2,655 | Final/sdram/firmware/extraops.S | // This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
#define regnum_q0 0
... |
fff1214/SoC-Final | 1,662 | Final/sdram/firmware/crt0_vex.S | .global main
.global isr
.global _start
_start:
j crt_init
nop
nop
nop
nop
nop
nop
nop
.global trap_entry
trap_entry:
sw x1, - 1*4(sp)
sw x5, - 2*4(sp)
sw x6, - 3*4(sp)
sw x7, - 4*4(sp)
sw x10, - 5*4(sp)
sw x11, - 6*4(sp)
sw x12, - 7*4(sp)
sw x13, - 8*4(sp)
sw x14, - 9*4(sp)
s... |
fff1214/SoC-Final | 1,803 | Final/sdram/firmware/crt0_ibex.S | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#include "simple_system_regs.h"
.section .text
default_exc_handler:
jal x0, simple_exc_handler
timer_handler:
jal x0, simple_timer_handler
reset_handler:
/* set a... |
fff1214/SoC-Final | 3,215 | Final/sdram/firmware/start_caravel_vexriscv.s | # SPDX-FileCopyrightText: 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
fff1214/SoC-Final | 3,199 | Final/sdram/firmware/start_caravel_ibex.s | # SPDX-FileCopyrightText: 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
fff1214/SoC-Final | 6,209 | Final/sdram/firmware/start.S | /*
* Copyright 2018, Serge Bazanski <serge@bazanski.pl>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*/
#include "../extraops.S"
/*
* Interrupt vector.
*/
.global _start
_start:
.org 0x00000000 # Reset
j _crt0
.org 0x00000010 ... |
fff1214/SoC-Final | 4,495 | Final/sdram/testbench/counter_la_qs/counter_la_qs.elf-isr.s | .file "isr.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/counter_la_qs" "../../firmware/isr.c"
.align 2
.globl isr
.type isr, @function
isr:
.LFB321:
.fi... |
fff1214/SoC-Final | 13,503 | Final/sdram/testbench/counter_la_qs/counter_la_qs.elf-counter_la_qs.s | .file "counter_la_qs.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/counter_la_qs" "counter_la_qs.c"
.align 2
.globl putchar
.type putchar, @function
putch... |
fff1214/SoC-Final | 1,604 | Final/sdram/testbench/counter_la_qs/counter_la_qs.elf-crt0_vex.s | # 0 "../../firmware/crt0_vex.S"
# 1 "/home/ubuntu/Desktop/Final_test-main/testbench/counter_la_qs//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "../../firmware/crt0_vex.S"
.global main
.global isr
.global _start
_start:
j crt_init
nop
nop
nop
nop
nop
nop
nop
.global trap_entry
trap_entry:
sw x1, - 1*... |
fff1214/SoC-Final | 11,637 | Final/sdram/testbench/counter_la_qs/counter_la_qs.elf-qsort.s | .file "qsort.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/counter_la_qs" "qsort.c"
.section .mprjram,"ax",@progbits
.align 2
.globl partition
.type part... |
fff1214/SoC-Final | 5,979 | Final/sdram/testbench/counter_la_mm/counter_la_mm.elf-isr.s | .file "isr.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/lab-wlos_baseline/testbench/counter_la_mm" "../../firmware/isr.c"
.align 2
.type flush_cpu_icache, @function
flush_cpu_icach... |
fff1214/SoC-Final | 14,339 | Final/sdram/testbench/counter_la_mm/counter_la_mm.elf-counter_la_mm.s | .file "counter_la_mm.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/lab-wlos_baseline/testbench/counter_la_mm" "counter_la_mm.c"
.align 2
.type flush_cpu_icache, @function
flush_cpu_... |
fff1214/SoC-Final | 1,606 | Final/sdram/testbench/counter_la_mm/counter_la_mm.elf-crt0_vex.s | # 0 "../../firmware/crt0_vex.S"
# 1 "/home/ubuntu/Desktop/lab-wlos_baseline/testbench/counter_la_mm//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "../../firmware/crt0_vex.S"
.global main
.global isr
.global _start
_start:
j crt_init
nop
nop
nop
nop
nop
nop
nop
.global trap_entry
trap_entry:
sw x1, - ... |
fff1214/SoC-Final | 7,308 | Final/sdram/testbench/counter_la_mm/counter_la_mm.elf-matmul.s | .file "matmul.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/lab-wlos_baseline/testbench/counter_la_mm" "matmul.c"
.globl A
.data
.align 2
.type A, @object
.size A, 64
A:
.word 0... |
fff1214/SoC-Final | 6,209 | Final/Final_UART_FIFO/firmware/start_pico.S | /*
* Copyright 2018, Serge Bazanski <serge@bazanski.pl>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*/
#include "../extraops.S"
/*
* Interrupt vector.
*/
.global _start
_start:
.org 0x00000000 # Reset
j _crt0
.org 0x00000010 ... |
fff1214/SoC-Final | 2,655 | Final/Final_UART_FIFO/firmware/extraops.S | // This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
#define regnum_q0 0
... |
fff1214/SoC-Final | 1,662 | Final/Final_UART_FIFO/firmware/crt0_vex.S | .global main
.global isr
.global _start
_start:
j crt_init
nop
nop
nop
nop
nop
nop
nop
.global trap_entry
trap_entry:
sw x1, - 1*4(sp)
sw x5, - 2*4(sp)
sw x6, - 3*4(sp)
sw x7, - 4*4(sp)
sw x10, - 5*4(sp)
sw x11, - 6*4(sp)
sw x12, - 7*4(sp)
sw x13, - 8*4(sp)
sw x14, - 9*4(sp)
s... |
fff1214/SoC-Final | 1,803 | Final/Final_UART_FIFO/firmware/crt0_ibex.S | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#include "simple_system_regs.h"
.section .text
default_exc_handler:
jal x0, simple_exc_handler
timer_handler:
jal x0, simple_timer_handler
reset_handler:
/* set a... |
fff1214/SoC-Final | 3,215 | Final/Final_UART_FIFO/firmware/start_caravel_vexriscv.s | # SPDX-FileCopyrightText: 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
fff1214/SoC-Final | 3,199 | Final/Final_UART_FIFO/firmware/start_caravel_ibex.s | # SPDX-FileCopyrightText: 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
fff1214/SoC-Final | 6,209 | Final/Final_UART_FIFO/firmware/start.S | /*
* Copyright 2018, Serge Bazanski <serge@bazanski.pl>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*/
#include "../extraops.S"
/*
* Interrupt vector.
*/
.global _start
_start:
.org 0x00000000 # Reset
j _crt0
.org 0x00000010 ... |
fff1214/SoC-Final | 12,305 | Final/Final_UART_FIFO/testbench/uart/uart.elf-counter_la_uart.s | .file "counter_la_uart.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/uart" "counter_la_uart.c"
.section .text.startup,"ax",@progbits
.align 2
.globl main
... |
fff1214/SoC-Final | 13,488 | Final/Final_UART_FIFO/testbench/uart/uart.elf-uart.s | .file "uart.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/uart" "uart.c"
.section .mprj,"ax",@progbits
.align 2
.globl uart_write
.type uart_write, @func... |
fff1214/SoC-Final | 10,685 | Final/Final_UART_FIFO/testbench/uart/uart.elf-isr.s | .file "isr.c"
.option nopic
.attribute arch, "rv32i2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.Ltext0:
.cfi_sections .debug_frame
.file 0 "/home/ubuntu/Desktop/Final_test-main/testbench/uart" "../../firmware/isr.c"
.align 2
.globl isr
.type isr, @function
isr:
.LFB321:
.file 1 "../... |
fff1214/SoC-Final | 1,619 | Final/Final_UART_FIFO/testbench/uart/uart.elf-crt0_vex.s | # 0 "../../firmware/crt0_vex.S"
# 1 "/home/ubuntu/Desktop/Final_test-main/testbench/uart//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "../../firmware/crt0_vex.S"
.global main
.global isr
.global _start
_start:
j crt_init
nop
nop
nop
nop
nop
nop
nop
.global trap_entry
trap_entry:
sw x1, - 1*4(sp)
s... |
fhuko1357/spectre | 8,619 | src/asm/keccakf1600_x86-64-elf.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... |
fhuko1357/spectre | 10,572 | src/asm/keccakf1600_x86-64-win64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.def __KeccakF1600; .scl 3; .type 32; .endef
.p2align 5
__KeccakF1600:
.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
.p2align 5
.L... |
fhuko1357/spectre | 8,238 | src/asm/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... |
fhuko1357/spectre | 10,572 | src/asm/keccakf1600_x86-64-mingw64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.def __KeccakF1600; .scl 3; .type 32; .endef
.p2align 5
__KeccakF1600:
.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
.p2align 5
.L... |
Fircube/ACore-2024 | 1,426 | os/src/link_app.s |
.align 3
.section .data
.global _num_app
_num_app:
.quad 6
.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_5_end
.global _app_names
_app_names:
.string "exec"
.string "fork"
.string "get"
... |
Fircube/ACore-2024 | 561 | os/src/time/interrupt.s | .section .text.trap
.globl _timer_int_handle
.align 2
_timer_int_handle:
csrrw sp, mscratch, sp
sd t0, 0(sp)
sd t1, 1*8(sp)
sd t2, 2*8(sp)
# setup next timer trigger
ld t0, 3*8(sp) # address of mtimercmp
ld t1, 4*8(sp) # timer interval
ld t2, 0(t0) # current time
add t2,... |
Fircube/ACore-2024 | 690 | os/src/task/switch.s | .altmacro
.macro SAVE_SN n
sd s\n, (\n+2)*8(a0)
.endm
.macro LOAD_SN n
ld s\n, (\n+2)*8(a1)
.endm
.section .text
.globl __switch
__switch:
# __switch(
# current_task_cx_ptr: *mut TaskContext, // a0
# next_task_cx_ptr: *const TaskContext // a1
# )
# save kernel stack of curr... |
Fircube/ACore-2024 | 1,685 | 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 __usertrap
.globl __userret
.align 2
__usertrap:
csrrw sp, sscratch, sp
# now sp->*TrapContext in user space, sscratch->user stack
# save other general purpose... |
flattte/crypto-usage | 323 | res/entry.s | .option norvc
.section .init
.global _start
_start:
.option push
.option norelax
la gp, global_pointer
.option pop
/* Setup stack */
la sp, stack_top
/* Clear the BSS section */
la t5, bss_start
la t6, bss_end
bss_clear:
sd zero, (t5)
addi t5, t5, 8
bgeu t5, t6, bss_clear
start:
tail ma... |
FloppyO1/Floppy-Ant-Controller | 9,173 | SOFTWARE/FAC firmware/Core/Startup/startup_stm32f070cbtx.s | /**
******************************************************************************
* @file startup_stm32f070xb.s
* @author MCD Application Team
* @brief STM32F070xb/STM32F070x8 devices vector table for GCC toolchain.
* This module performs:
* - Set the initial SP
* ... |
flux-rs/flux-verify-std | 11,809 | library/std/src/sys/pal/sgx/abi/entry.S | /* This symbol is used at runtime to figure out the virtual address that the */
/* enclave is loaded at. */
.section absolute
.global IMAGE_BASE
IMAGE_BASE:
.section ".note.x86_64-fortanix-unknown-sgx", "", @note
.align 4
.long 1f - 0f /* name length (not including padding) */
.long 3f - 2f ... |
foss-for-synopsys-dwc-arc-processors/compiler-abi-extractor | 336 | src/arch/riscv2.s | # Copyright 2025-present, Synopsys, Inc.
# All rights reserved.
#
# This source code is licensed under the GPL-3.0 license found in
# the LICENSE file in the root directory of this source tree.
.data
.text
.globl foo
foo:
addi sp, sp, -8
sw ra, 0(sp)
call bar
call callee
lw ra, 0(sp)
addi sp,... |
foss-for-synopsys-dwc-arc-processors/compiler-abi-extractor | 4,651 | src/arch/riscv.S | # Copyright 2025-present, Synopsys, Inc.
# All rights reserved.
#
# This source code is licensed under the GPL-3.0 license found in
# the LICENSE file in the root directory of this source tree.
#if __riscv_xlen == 64
#define T6_STACK_OFFSET -8
#define S2_STACK_OFFSET -16
#else
#define T6_STACK_OFFSET -4
#define S2_STA... |
Foundation-Devices/pqcrypto | 5,583 | pqcrypto-internals/cfiles/keccak2x/feat.S |
/*
MIT License
Copyright (c) 2020 Bas Westerbaan
Copyright (c) 2023: Hanno Becker, Vincent Hwang, Matthias J. Kannwischer, Bo-Yin Yang, and Shang-Yi Yang
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 S... |
fpdotmonkey/hot-reload | 62 | tls-dtor-fallback.s | .global __cxa_thread_atexit_impl
__cxa_thread_atexit_impl = 0
|
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 4,082 | portable/ARMv8M/secure/context/portable/IAR/ARM_CM23/secure_context_port_asm.s | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 4,055 | portable/ARMv8M/secure/context/portable/IAR/ARM_CM33/secure_context_port_asm.s | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 22,503 | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23_NTZ/portasm.s | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 40,430 | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23_NTZ/mpu_wrappers_v2_asm.S | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 28,629 | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/portasm.s | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOSCIRunnerIntegrationTest/lab-freertos-kernel | 40,430 | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/mpu_wrappers_v2_asm.S | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.