repo_id
string
size
int64
file_path
string
content
string
NgeliMrasi/healthstash-prototype
41,448
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.17.13/crypto/curve25519/asm/x25519-asm-arm.S
// Copyright 2015 The BoringSSL Authors // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
NgeliMrasi/healthstash-prototype
6,761
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lzma-sys-0.1.20/xz-5.2/src/liblzma/check/crc64_x86.S
/* * Speed-optimized CRC64 using slicing-by-four algorithm * * This uses only i386 instructions, but it is optimized for i686 and later * (including e.g. Pentium II/III/IV, Athlon XP, and Core 2). * * Authors: Igor Pavlov (original CRC32 assembly code) * Lasse Collin (CRC64 adaptation of the modified CR...
NgeliMrasi/healthstash-prototype
7,228
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lzma-sys-0.1.20/xz-5.2/src/liblzma/check/crc32_x86.S
/* * Speed-optimized CRC32 using slicing-by-eight algorithm * * This uses only i386 instructions, but it is optimized for i686 and later * (including e.g. Pentium II/III/IV, Athlon XP, and Core 2). For i586 * (e.g. Pentium), slicing-by-four would be better, and even the C version * of slicing-by-eight built with ...
NIBRSYK16/wasmtime-as-lib
4,052
src/runtime/vm/arch/s390x.S
// Currently `global_asm!` isn't stable on s390x, so this is an external // assembler file built with the `build.rs`. .machine z13 .text .hidden host_to_wasm_trampoline .globl host_to_wasm_trampoline .type host_to_wasm_trampoline,@function .p2align 2 #define CONCAT2(a,...
NickWentworth/os
5,159
src/vec.s
.globl _vector_table .globl _load_exception_frame /* Exception Frame Layout All entries are 8-byte values 0x000 : x0, regs[0] 0x008 : x1, regs[1] ... 0x0F0 : x30, regs[30] 0x0F8 : sp 0x100 : elr 0x108 : spsr 0x110 : esr 0x118 : far 0x120 : (kind) */ .equ REG_OF...
NickWentworth/os
2,908
src/boot.s
.section ".text.boot" .globl _start _start: // halt all but main processor mrs x5, MPIDR_EL1 and x5, x5, #0b11 cbnz x5, halt el3_entry: // verify we are currently in EL3 mrs x5, CurrentEL lsr x5, x5, #2 cmp x5, #3 blt el2_entry // configure EL3 syst...
Night-commits/comprehensive-rust
4,676
src/bare-metal/aps/examples/src/exceptions.S
/* * Copyright 2023 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Night-commits/comprehensive-rust
1,445
src/bare-metal/aps/examples/src/idmap.S
/* * Copyright 2023 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Night-commits/comprehensive-rust
4,768
src/bare-metal/aps/examples/src/entry.S
/* * Copyright 2023 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
NightWatcher314/zos
1,494
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 7 .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_6_end .section .data .global app_0_start .global app_0_end ...
NightWatcher314/zos
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...
NitroA/mtkclient
7,195
src/da_x/common/start.S
/* Copyright 2024 (c) B.Kerler */ /* Use of this source code is governed by a GPLv3 license, see LICENSE.txt. */ .syntax unified .code 32 .global start .section .text.start start: add r3, pc, #1 bx r3 .global apmcu_dcache_clean_invalidate .section .text .type apmcu_dcache_clean_invalidate,%function apmcu...
NitroA/mtkclient
7,083
src/da_xml/common/start.S
.syntax unified .code 32 .global start .section .text.start start: #add r3, pc, #1 #bx r3 .global apmcu_dcache_clean_invalidate .section .text .type apmcu_dcache_clean_invalidate,%function apmcu_dcache_clean_invalidate: push {r4,r5,r7,r9,r10,r11} dmb /* ensur...
NjrSea/ycc
1,143
test/main_return_int.s
.section __TEXT,__text,regular,pure_instructions ; __TEXT段名, __text子段名, regular表明是常规段, pure_instructions表明该段只有指令不含数据 .build_version macos, 15, 0 sdk_version 15, 2 ; 指定程序支持的操作系统版本和SDK版本 .globl _main ; -- Begin function main ; 声明全局符号 .p2align 2 ; 将下一条指令的地址按2的幂次方对齐(2表示按4字节对齐),下一条指令地址是4的倍数...
NKU-EmbeddedSystem/Prism
2,741
asm2vec/asm2vec/examples/training.s
my_strlen_train: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rbp-8], rax jmp .L2 .L3: add QWORD PTR [rbp-8], 1 .L2: mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [ra...
NKU-EmbeddedSystem/Prism
1,712
asm2vec/asm2vec/examples/estimating.s
my_strlen_est: cmp BYTE PTR [rdi], 0 je .L4 mov rax, rdi .L3: add rax, 1 cmp BYTE PTR [rax], 0 jne .L3 .L2: sub rax, rdi ret .L4: mov rax, rdi jmp .L2 my_strcmp_est: movzx eax, BYTE PTR [rdi] ...
NjrSea/ycc
1,143
test/main_return_int.s
.section __TEXT,__text,regular,pure_instructions ; __TEXT段名, __text子段名, regular表明是常规段, pure_instructions表明该段只有指令不含数据 .build_version macos, 15, 0 sdk_version 15, 2 ; 指定程序支持的操作系统版本和SDK版本 .globl _main ; -- Begin function main ; 声明全局符号 .p2align 2 ; 将下一条指令的地址按2的幂次方对齐(2表示按4字节对齐),下一条指令地址是4的倍数...
NKU-EmbeddedSystem/Prism
2,741
asm2vec/asm2vec/examples/training.s
my_strlen_train: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rbp-8], rax jmp .L2 .L3: add QWORD PTR [rbp-8], 1 .L2: mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [ra...
NKU-EmbeddedSystem/Prism
1,712
asm2vec/asm2vec/examples/estimating.s
my_strlen_est: cmp BYTE PTR [rdi], 0 je .L4 mov rax, rdi .L3: add rax, 1 cmp BYTE PTR [rax], 0 jne .L3 .L2: sub rax, rdi ret .L4: mov rax, rdi jmp .L2 my_strcmp_est: movzx eax, BYTE PTR [rdi] ...
Noratrieb/rustv32i
1,030
tests/helper.S
.macro START_TEST .section .text .globl _start _start: .endm .macro ASSERT_EQ actual expected li t6, \expected bne \actual, t6, fail .endm .macro PASS li a7, -1 li a0, 1 ecall .endm .macro FAIL j fail .endm .macro WITH_SINGLE_TEST_NUMBERS macro \macro a, 0 \macro c, 1 ...
Noratrieb/rustv32i
1,616
tests/check/zaamo.S
# Atomic Memory Operations #include "../helper.S" .macro CASE_BASE inst reg mem expected_mem li t0, 0 li t1, \mem sw t1, (t0) li t3, \reg \inst t2, t3, (t0) ASSERT_EQ t2, \mem lw t3, (t0) ASSERT_EQ t3, \expected_mem .endm .macro CASE inst reg mem expected_mem CASE_BASE \inst, \reg...
Noratrieb/rustv32i
4,858
tests/check/int_comp.S
# Integer computational register-register instruction. #include "../helper.S" .macro CASER inst:req a:req b:req expected:req li t0, \a li t1, \b \inst t2, t0, t1 ASSERT_EQ t2, \expected .endm .macro CASE_IMM inst:req a:req b:req expected:req li t0, \a \inst t2, t0, \b ASSERT_EQ t2, \expec...
Noratrieb/rustv32i
1,292
tests/check/branch.S
# Control transfer instructions #include "../helper.S" START_TEST j unconditional FAIL unconditional: # Test branching instructions li t0, 10 li t1, 10 beq t0, t1, branch2 FAIL branch2: bge t0, t1, branch3 FAIL branch3: bne t0, t1, fail blt t0, t1, fail bltu t0, t1, fail ...
Noratrieb/rustv32i
1,790
tests/check/mem.S
# Load and Store Instructions #include "../helper.S" .macro CASE_NO_OFFSET_DIFF_RESULT s l value result li t1, \value \s t1, 0(t0) \l t2, 0(t0) ASSERT_EQ t2, \result .endm .macro CASE_NO_OFFSET s l value CASE_NO_OFFSET_DIFF_RESULT \s, \l, \value, \value .endm .macro CASE_SAME_OFFSET s l value o...
Not-Buddy/OmniBuild
2,290
src/ASM_Code/bitwise_ops_arm64.s
// src/ASM_Code/bitwise_ops_arm64.s // Fast bitwise operations in ARM64 assembly (AArch64) for Linux .text .global asm_fast_and .global asm_fast_or .global asm_fast_xor .global asm_fast_shift_left .global asm_fast_shift_right .global asm_count_bits .global asm_reverse_bits // Fast bitw...
Not-Buddy/OmniBuild
2,689
src/ASM_Code/bitwise_ops.s
# src/ASM_Code/bitwise_ops.s # Fast bitwise operations in x86-64 assembly .section .text .globl asm_fast_and .globl asm_fast_or .globl asm_fast_xor .globl asm_fast_shift_left .globl asm_fast_shift_right .globl asm_count_bits .globl asm_reverse_bits # Fast bitwise AND: asm_fast_and(a: u64, b: u64) -> u64 asm_fast_and:...
Noratrieb/rustv32i
1,030
tests/helper.S
.macro START_TEST .section .text .globl _start _start: .endm .macro ASSERT_EQ actual expected li t6, \expected bne \actual, t6, fail .endm .macro PASS li a7, -1 li a0, 1 ecall .endm .macro FAIL j fail .endm .macro WITH_SINGLE_TEST_NUMBERS macro \macro a, 0 \macro c, 1 ...
Noratrieb/rustv32i
1,616
tests/check/zaamo.S
# Atomic Memory Operations #include "../helper.S" .macro CASE_BASE inst reg mem expected_mem li t0, 0 li t1, \mem sw t1, (t0) li t3, \reg \inst t2, t3, (t0) ASSERT_EQ t2, \mem lw t3, (t0) ASSERT_EQ t3, \expected_mem .endm .macro CASE inst reg mem expected_mem CASE_BASE \inst, \reg...
Noratrieb/rustv32i
4,858
tests/check/int_comp.S
# Integer computational register-register instruction. #include "../helper.S" .macro CASER inst:req a:req b:req expected:req li t0, \a li t1, \b \inst t2, t0, t1 ASSERT_EQ t2, \expected .endm .macro CASE_IMM inst:req a:req b:req expected:req li t0, \a \inst t2, t0, \b ASSERT_EQ t2, \expec...
Noratrieb/rustv32i
1,292
tests/check/branch.S
# Control transfer instructions #include "../helper.S" START_TEST j unconditional FAIL unconditional: # Test branching instructions li t0, 10 li t1, 10 beq t0, t1, branch2 FAIL branch2: bge t0, t1, branch3 FAIL branch3: bne t0, t1, fail blt t0, t1, fail bltu t0, t1, fail ...
Noratrieb/rustv32i
1,790
tests/check/mem.S
# Load and Store Instructions #include "../helper.S" .macro CASE_NO_OFFSET_DIFF_RESULT s l value result li t1, \value \s t1, 0(t0) \l t2, 0(t0) ASSERT_EQ t2, \result .endm .macro CASE_NO_OFFSET s l value CASE_NO_OFFSET_DIFF_RESULT \s, \l, \value, \value .endm .macro CASE_SAME_OFFSET s l value o...
Not-Buddy/OmniBuild
2,290
src/ASM_Code/bitwise_ops_arm64.s
// src/ASM_Code/bitwise_ops_arm64.s // Fast bitwise operations in ARM64 assembly (AArch64) for Linux .text .global asm_fast_and .global asm_fast_or .global asm_fast_xor .global asm_fast_shift_left .global asm_fast_shift_right .global asm_count_bits .global asm_reverse_bits // Fast bitw...
Not-Buddy/OmniBuild
2,689
src/ASM_Code/bitwise_ops.s
# src/ASM_Code/bitwise_ops.s # Fast bitwise operations in x86-64 assembly .section .text .globl asm_fast_and .globl asm_fast_or .globl asm_fast_xor .globl asm_fast_shift_left .globl asm_fast_shift_right .globl asm_count_bits .globl asm_reverse_bits # Fast bitwise AND: asm_fast_and(a: u64, b: u64) -> u64 asm_fast_and:...
o1-labs/proof-systems-vendors
28,374
secp256k1-sys/depend/secp256k1/src/asm/field_10x26_arm.s
@ vim: set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab syntax=armasm: /*********************************************************************** * Copyright (c) 2014 Wladimir J. van der Laan * * Distributed under the MIT software license, see the accompanying * * file COPYING or https:/...
Obed-Ojingwa/Retail_Sales_Analysis
15,124
sales_env/lib/python3.12/site-packages/prophet/stan_model/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb_2020.3/src/tbb/ia64-gas/atomic_support.s
// Copyright (c) 2005-2020 Intel 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 o...
Obed-Ojingwa/Retail_Sales_Analysis
1,304
sales_env/lib/python3.12/site-packages/prophet/stan_model/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb_2020.3/src/tbb/ia64-gas/log2.s
// Copyright (c) 2005-2020 Intel 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 o...
Obed-Ojingwa/Retail_Sales_Analysis
1,270
sales_env/lib/python3.12/site-packages/prophet/stan_model/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb_2020.3/src/tbb/ia64-gas/lock_byte.s
// Copyright (c) 2005-2020 Intel 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 o...
Obed-Ojingwa/Retail_Sales_Analysis
2,687
sales_env/lib/python3.12/site-packages/prophet/stan_model/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb_2020.3/src/tbb/ia64-gas/ia64_misc.s
// Copyright (c) 2005-2020 Intel 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 o...
oknotokcomputer/libcrosvm
1,406
kernel_loader/src/test_elf.S
# Copyright 2022 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Build instructions: # x86_64-linux-gnu-as test_elf.S -o test_elf.o # x86_64-linux-gnu-ld test_elf.o -o test_elf.bin -T test_elf.ld .intel_syntax noprefix .section ...
OluwamayowaMusa/kratos
4,912
src/boot.s
/* Declare constants for the multiboot header. */ .set ALIGN, 1<<0 /* align loaded modules on page boundaries */ .set MEMINFO, 1<<1 /* provide memory map */ .set FLAGS, ALIGN | MEMINFO /* this is the Multiboot 'flag' field */ .set MAGIC, 0x1BADB002 /* 'magic number' lets bootloa...
Ollie-Pearce/rust
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 ...
omnirom/android_packages_modules_Virtualization
4,679
libs/libvmbase/exceptions.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
omnirom/android_packages_modules_Virtualization
1,788
libs/libvmbase/exceptions_panic.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
omnirom/android_packages_modules_Virtualization
5,154
libs/libvmbase/entry.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
omnirom/android_packages_modules_Virtualization
2,102
guest/vmbase_example/idmap.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
omnirom/android_packages_modules_Virtualization
2,161
guest/rialto/idmap.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
omnirom/android_packages_modules_Virtualization
1,745
guest/pvmfw/idmap.S
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
oooobserver/rcore
1,245
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 .section .data .global app_0_start .global app_0_end app_0_start: .incbin "...
oooobserver/rcore
1,588
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 .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...
ornfelt/my_rust
5,156
repos/spha/sphaerophoria_stream-os/src/boot.s
/* Declare constants for the multiboot header. */ .set MULTIBOOT2_MAGIC, 0xE85250D6 /* multiboot 2 magic */ .set MULTIBOOT2_ARCHITECTURE, 0 /*i386 */ /* Declare a multiboot2 header that marks the program as a kernel. These are magic values that are documented in the multiboot2 standard. The bootloader will se...
oscomp/test-la-load-arceos
2,095
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...
oscomp/test-la-load-arceos
4,325
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...
oscomp/test-la-load-arceos
1,965
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...
oscomp/test-la-load-arceos
1,791
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...
oscomp/test-la-load-arceos
2,358
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...
oscomp/test-la-load-arceos
1,397
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 ...
oscomp/test-la-load-arceos
1,627
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 ...
oscomp/test-la-load-arceos
2,989
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 ...
oscomp/test-la-load-arceos
2,544
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 //-----------------------------------------------------------------------------------...
OshinoShinobu-Chan/my_rCore_kernel
7,666
src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 33 .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 ...
OshinoShinobu-Chan/my_rCore_kernel
2,109
src/trap/trap.S
.altmacro .macro SAVE_GP n # Macro used to save the nth general purpose register to stack sd x\n, \n*8(sp) .endm .macro LOAD_GP n # Macro used to load the nth general purpose register to stack ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltrap...
oswald2/my_os
1,081
src/boot.s
.section .text._start .global _start .type _start, @function _start: # Initialize the stack adr x7, {} // Move address of STACK into x7 mov x8, {} // Move size of STACK into x8 add x7, x7, x8 // Adjust stack pointer to end of memory region mov sp, x7 // Now set the stack pointer...
OwenWangbattle/Rcore-Project
2,218
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 .globl __alltraps_k .globl __restore_k .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->*TrapContext in user space, sscratch...
ozhang228/books_courses_exercises
1,210
ostep/homework/threads-locks/peterson.s
# array of 2 integers (each size 4 bytes) # load address of flag into fx register # access flag[] with 0(%fx,%index,4) # where %index is a register holding 0 or 1 # index reg contains 0 -> flag[0], if 1->flag[1] .var flag 2 # global turn variable .var turn # global count .var count .main # put address of fla...
P1erreCashon/rustcomp
3,481
arch/src/x86_64/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 edi, eax # arg1: magic: 0x2BADB002 mov esi, ebx # arg2: multiboot info jmp bsp_entry32 .ba...
P1erreCashon/rustcomp
3,475
arch/src/aarch64/trap.S
.macro INVALID_EXCP, kind, source .p2align 7 msr daifset, #2 sub sp, sp, 35 * 8 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] s...
parkwoodam/lumina_ai
15,150
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zstd-sys-2.0.15+zstd.1.5.7/zstd/lib/decompress/huf_decompress_amd64.S
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may...
Parsifal1986/XV6-RISCV-in-RUST
1,512
kernel/src/kernelvec.S
# # interrupts and exceptions while in supervisor # mode come here. # # the current stack is a kernel stack. # push registers, call kerneltrap(). # when kerneltrap() returns, restore registers, return. # .globl kerneltrap .globl kernelvec .align 4 kernelve...
Parsifal1986/XV6-RISCV-in-RUST
3,745
kernel/src/trampoline.S
# # low-level code to handle traps from user space into # the kernel, and returns from kernel to user. # # the kernel maps the page holding this code # at the same virtual address (TRAMPOLINE) # in user and kernel space so that it continues # to work when ...
pascaldisse/gaia-script
2,961
comp/src/asm_runtime_x86_64.s
; GaiaScript X86-64 Runtime Support ; This file contains the runtime functions needed by GaiaScript assembly section .data ; Error messages err_memory_alloc_failed db "Failed to allocate memory", 0 ; Constants float_one dq 1.0 section .text global gaia_input_image global gaia_input_te...
patmessina/chip8
3,359
assembly/test.s
// print out all opcodes -- not intended to be run on chip 8 // vf -- is used as a flag instruction -- particularly for overflow org 0x2 opcodes: // add i vx - 0xfx1e - expected 0xF21E // i = i + vx -- does not affect the vf on overflow add i v2 // add vx vy - 0x8xy4 - expected 0x8234 -- vy is not affected...
pcg108/crosvm
1,406
kernel_loader/src/test_elf.S
# Copyright 2022 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Build instructions: # x86_64-linux-gnu-as test_elf.S -o test_elf.o # x86_64-linux-gnu-ld test_elf.o -o test_elf.bin -T test_elf.ld .intel_syntax noprefix .section ...
Peggyliao/Final-Project
2,655
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 ...
Peggyliao/Final-Project
6,209
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 ...
Peggyliao/Final-Project
1,803
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...
Peggyliao/Final-Project
3,215
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...
Peggyliao/Final-Project
1,662
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...
Peggyliao/Final-Project
3,199
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...
Peggyliao/Final-Project
6,209
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 ...
PeterDing372/rCore-notes
2,218
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 .globl __alltraps_k .globl __restore_k .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->*TrapContext in user space, sscratch...
PhamNamSon/ECE_421
1,735
Lab_5/question_4.s
example::question_2: push rax test rsi, rsi je .LBB0_11 xor edx, edx jmp .LBB0_2 .LBB0_10: cmp rdx, rsi je .LBB0_11 .LBB0_2: mov r8, rdx inc rdx mov r9, rdx mov rcx, r8 cmp rdx...
PhamNamSon/ECE_421
7,996
Lab_5/question_3.s
<usize as core::iter::range::Step>::forward_unchecked: mov rax, rdi add rax, rsi ret core::iter::range::<impl core::iter::traits::iterator::Iterator for core::ops::range::Range<A>>::next: push rax mov rax, qword ptr [rip + <core::ops::range::Range<T> as core::iter...
philippeZim/OSTEP_Solutions
1,210
chapter28/threads-locks/peterson.s
# array of 2 integers (each size 4 bytes) # load address of flag into fx register # access flag[] with 0(%fx,%index,4) # where %index is a register holding 0 or 1 # index reg contains 0 -> flag[0], if 1->flag[1] .var flag 2 # global turn variable .var turn # global count .var count .main # put address of fla...
philippeZim/OSTEP_Solutions
2,026
chapter27/threads-api/file.s
.file "main-signal.c" .text .globl done .bss .align 4 .type done, @object .size done, 4 done: .zero 4 .section .rodata .LC0: .string "this should print first" .text .globl worker .type worker, @function worker: .LFB6: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %r...
PhamNamSon/ECE_421
1,735
Lab_5/question_4.s
example::question_2: push rax test rsi, rsi je .LBB0_11 xor edx, edx jmp .LBB0_2 .LBB0_10: cmp rdx, rsi je .LBB0_11 .LBB0_2: mov r8, rdx inc rdx mov r9, rdx mov rcx, r8 cmp rdx...
PhamNamSon/ECE_421
7,996
Lab_5/question_3.s
<usize as core::iter::range::Step>::forward_unchecked: mov rax, rdi add rax, rsi ret core::iter::range::<impl core::iter::traits::iterator::Iterator for core::ops::range::Range<A>>::next: push rax mov rax, qword ptr [rip + <core::ops::range::Range<T> as core::iter...
Pico-KID/picod
5,802
crypto/muhash/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...
Pico-KID/picod
6,073
crypto/muhash/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...
Pico-KID/picod
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...
Pico-KID/picod
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...
philippeZim/OSTEP_Solutions
1,210
chapter28/threads-locks/peterson.s
# array of 2 integers (each size 4 bytes) # load address of flag into fx register # access flag[] with 0(%fx,%index,4) # where %index is a register holding 0 or 1 # index reg contains 0 -> flag[0], if 1->flag[1] .var flag 2 # global turn variable .var turn # global count .var count .main # put address of fla...
philippeZim/OSTEP_Solutions
2,026
chapter27/threads-api/file.s
.file "main-signal.c" .text .globl done .bss .align 4 .type done, @object .size done, 4 done: .zero 4 .section .rodata .LC0: .string "this should print first" .text .globl worker .type worker, @function worker: .LFB6: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %r...
Pico-KID/picod
5,802
crypto/muhash/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...
Pico-KID/picod
6,073
crypto/muhash/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...
Pico-KID/picod
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...
Pico-KID/picod
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...
pipijing13/FT2-LLM-inference-protection
27,813
aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-aarch64-neon.S
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <qnnpack/assembly.h> #include <requantization/runtime-assembly.h> # Args passed via 8 regi...
pipijing13/FT2-LLM-inference-protection
18,740
aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/4x8-aarch32-neon.S
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <qnnpack/assembly.h> #include <requantization/runtime-assembly.h> .syntax unified # Args ...
pipijing13/FT2-LLM-inference-protection
11,694
aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/4x8c2-xzp-aarch32-neon.S
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <qnnpack/assembly.h> .syntax unified # void pytorch_q8gemm_xzp_ukernel_4x8c2__neon( # ...
pipijing13/FT2-LLM-inference-protection
17,365
aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/4x8-dq-aarch32-neon.S
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <qnnpack/assembly.h> #include <requantization/runtime-assembly.h> # r0 mr # r1 nr # r2 k # ...