repo_id stringlengths 5 115 | size int64 590 5.01M | file_path stringlengths 4 212 | content stringlengths 590 5.01M |
|---|---|---|---|
KAVYANSHTYAGI/pytorch | 39,799 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/8x8c1x4-dq-packedA-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>
#ifndef IGNORE_CODE_ALIGN_DIRECTIVES
#define NDEF_IGNORE_CODE_ALIGN_DI... |
KAVYANSHTYAGI/pytorch | 26,974 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c8x1-dq-packedA-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>
#ifndef __APPLE__
#define... |
KAVYANSHTYAGI/pytorch | 27,616 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8conv/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 reg... |
KAVYANSHTYAGI/pytorch | 18,255 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8conv/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 ... |
KAVYANSHTYAGI/pytorch | 7,829 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8dwconv/up8x9-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
# void p... |
KAVYANSHTYAGI/pytorch | 9,433 | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8dwconv/up8x9-aarch32-neon-per-channel.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
# void p... |
keith-hall/bat | 7,962 | tests/syntax-tests/highlighted/ARM Assembly/test.S | [38;2;248;248;242m.[0m[38;2;248;248;242mdata[0m
[38;2;249;38;114m.balign[0m[38;2;190;132;255m 4[0m
[38;2;248;248;242mred[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;190;132;255m 0[0m
[38;2;248;248;242mgreen[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;190;132;255m 0[0m
[... |
Kennystflr/2425_Maker_S2C | 12,523 | Software/S2C_motorBoard/Core/Startup/startup_stm32g431cbux.s | /**
******************************************************************************
* @file startup_stm32g431xx.s
* @author MCD Application Team
* @brief STM32G431xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - S... |
kevinjoseph1995/sdb-rs | 1,514 | tools/reg_write/asm/reg_write.s | .global main
.section .data
hex_format: .asciz "%#x"
float_format: .asciz "%.2f"
long_float_format: .asciz "%.2Lf"
.section .text
.macro trap
# 62 is the syscall ID for kill
movq $62, %rax
# Set rdi to the PID we just got
movq %r12, %rdi
# The signal ID for SIGTRAP is 5
movq $5, %rsi
sys... |
khbalhandawi/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 ... |
khbalhandawi/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... |
khbalhandawi/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
... |
khbalhandawi/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... |
khbalhandawi/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... |
khuonglm/kecc-public | 2,041 | hello.S | .globl fibonacci
.section .text
.type fibonacci, @function
.fibonacci_L3:
j .fibonacci_L1
.fibonacci_L4:
j .fibonacci_L2
fibonacci:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
sd a0,40(sp)
addi s0,sp,64
li s10,4
sub s11,a0,s10
... |
kiritantakechi/os | 1,640 | addressos/kernel/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... |
kiritantakechi/os | 1,025 | batchos/kernel/src/link_app.S |
.align 3
.section .data
.global _num_app
_num_app:
.quad 5
.quad app_0_start
.quad app_1_start
.quad app_2_start
.quad app_3_start
.quad app_4_start
.quad app_4_end
.section .data
.global app_0_start
.global app_0_end
app_0_start:
.incbin "./target/riscv64gc-unk... |
kiritantakechi/os | 1,589 | batchos/kernel/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... |
kjughx/ruix | 3,593 | crates/kernel/src/boot/x86.S | .code16
.org 0x7c00
.section .boot, "ax"
.global _entry
.intel_syntax
_entry:
jmp short step1
nop
.att_syntax
OEMIdentifier: .byte 'R', 'U', 'I', 'X', ' ', ' ', ' ', ' '
BytesPerSector: .word 0x200
SectorsPerCluster: .byte 0x80
ReservedSectors: .word 200
FATCopies: .byte 0x02
RootDirEntries:... |
kleineOS/kernel | 1,719 | src/kernelvec.s | .section .text.trap
.global ktrapvec
# We send the stack pointer in as the first argument to the kernel trap handler.
# This allows us to use that value in order to load the saved registers into a
# struct. We save the registers in the order of their internal names (x0-31),
# and not in the order of their ABI names (e... |
ktheindifferent/react-os-rust | 1,526 | kernel/src/smp/ap_trampoline.S | .code16
.section .ap_boot, "ax"
.global ap_trampoline_start
.global ap_trampoline_end
ap_trampoline_start:
cli
cld
# Load GDT pointer from boot info structure
lgdt ap_gdt_ptr
# Enable protected mode
mov %cr0, %eax
or $1, %eax
mov %eax, %cr0
# Far jump to 32-bit code
... |
kuechenrole/UaFESOM | 1,397 | fesomCpl/namelist.config.s | ! This is the namelist file for model general configuration
&modelname
runid='RG47911'
case_initial='warm'
case_forcing='warm'
variable_GammaTS=.false.
GammaT=0.01
/
×tep
step_per_day= 120!360 ! 960
run_length=5
run_length_unit='y' ! y, m, d, s
/
&clockinit ! the model starts at
timenew=0.0
daynew=1
... |
kuechenrole/UaFESOM | 9,132 | uaStandAlone/UaSource/SuiteSparse/MATLAB_Tools/SFMULT/sfmult_atxtyt_k.s | .file "sfmult_atxtyt_k.c"
.text
.globl sfmult_AT_XT_YT_2
.type sfmult_AT_XT_YT_2, @function
sfmult_AT_XT_YT_2:
.LFB29:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
pushl %edi
.LCFI2:
pushl %esi
.LCFI3:
pushl %ebx
.LCFI4:
subl $20, %esp
.LCFI5:
movl 40(%ebp), %esi
movl 36(%ebp), %eax
testl %eax, %eax
jle .L13... |
kuechenrole/UaFESOM | 9,132 | uaCpl/UaSource/SuiteSparse/MATLAB_Tools/SFMULT/sfmult_atxtyt_k.s | .file "sfmult_atxtyt_k.c"
.text
.globl sfmult_AT_XT_YT_2
.type sfmult_AT_XT_YT_2, @function
sfmult_AT_XT_YT_2:
.LFB29:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
pushl %edi
.LCFI2:
pushl %esi
.LCFI3:
pushl %ebx
.LCFI4:
subl $20, %esp
.LCFI5:
movl 40(%ebp), %esi
movl 36(%ebp), %eax
testl %eax, %eax
jle .L13... |
kumomi-systems/eisen | 4,411 | eisen-kernel/src/stub/bootinfo.S | ## Eisen Operating System
## Copyright (C) 2025 Kumomi Systems
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
... |
kumomi-systems/eisen | 1,267 | eisen-kernel/src/stub/mbrtrap.S | ## Eisen Operating System
## Copyright (C) 2025 Kumomi Systems
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
... |
kumomi-systems/eisen | 2,677 | eisen-kernel/src/arch/x86_64/int/isr.S | ## Eisen Operating System
## Copyright (C) 2025 Kumomi Systems
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
... |
kurumi8686/FDU2023-introduction-to-computer-system | 78,257 | lab2_bomblab/bomblab-handout/bomb.S |
./bomb: file format elf64-x86-64
Disassembly of section .init:
0000000000401000 <_init>:
401000: f3 0f 1e fa endbr64
401004: 48 83 ec 08 sub $0x8,%rsp
401008: 48 8b 05 e1 4f 00 00 mov 0x4fe1(%rip),%rax # 405ff0 <__gmon_start__>
40100f: 48 85 c0 test %rax... |
KyonQi/rustCore | 3,736 | os/src/link_app.S |
.align 3
.section .data
.global _num_app
_num_app:
.quad 16
.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
... |
KyonQi/rustCore | 1,690 | 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
# sp->kernel stack, sscratch->user stack
# now sp->*TrapContext in user space, sscratch->... |
lab47/lz4decode | 4,770 | decode_arm.s | // +build gc
// +build !noasm
#include "go_asm.h"
#include "textflag.h"
// Register allocation.
#define dst R0
#define dstorig R1
#define src R2
#define dstend R3
#define srcend R4
#define match R5 // Match address.
#define dictend R6
#define token R7
#define len R8 // Literal and match lengths.
#define offset R7 // ... |
lab47/lz4decode | 4,989 | decode_arm64.s | // +build gc
// +build !noasm
// This implementation assumes that strict alignment checking is turned off.
// The Go compiler makes the same assumption.
#include "go_asm.h"
#include "textflag.h"
// Register allocation.
#define dst R0
#define dstorig R1
#define src R2
#define dstend R3
#define dstend16 R4 // dste... |
lab47/lz4decode | 8,025 | decode_amd64.s | // +build !appengine
// +build gc
// +build !noasm
#include "go_asm.h"
#include "textflag.h"
// AX scratch
// BX scratch
// CX literal and match lengths
// DX token, match offset
//
// DI &dst
// SI &src
// R8 &dst + len(dst)
// R9 &src + len(src)
// R11 &dst
// R12 short output end
// R13 short input end
// R14 &dic... |
laduiw/learningOS_rcore | 1,488 | 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... |
lakhwindersinghx/STM32 | 9,725 | Core/Startup/startup_stm32f103c8tx.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f103xb.s
* @author MCD Application Team
* @brief STM32F103xB Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
lariaus/riscv-emu | 1,323 | bitswap/io.s | .align 2
.section .text
.equ UART_BASE, 0x10010000
.equ UART_REG_TXFIFO, 0
# `puts` subroutine writes null-terminated string to UART (serial communication port)
# input: a0 register specifies the starting address of a null-terminated string
# clobbers: t0, t1, t2 temporary registers
.globl puts
puts:
... |
lariaus/riscv-emu | 1,210 | fibo/exp_fibo.s | .file "exp_fibo.c"
.option nopic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 2
.globl fibo
.type fibo, @function
fibo:
mv a2,a0
li a5,1
ble a0,a5,.L4
li a0,1
li a4,0
.L3:
mv a3,a0
addw a0,a4,a0
addiw a5,a5,1... |
lariaus/riscv-emu | 1,323 | fibo/io.s | .align 2
.section .text
.equ UART_BASE, 0x10010000
.equ UART_REG_TXFIFO, 0
# `puts` subroutine writes null-terminated string to UART (serial communication port)
# input: a0 register specifies the starting address of a null-terminated string
# clobbers: t0, t1, t2 temporary registers
.globl puts
puts:
... |
lariaus/riscv-emu | 2,145 | hello_world/hello.s | .align 2
.equ UART_BASE, 0x10010000
.equ UART_REG_TXFIFO, 0
.section .text
# Entry point
.globl _start
_start:
csrr t0, mhartid # read hardware thread id (`hart` stands for `hardware thread`)
bnez t0, _exit # run only on the first hardware thread (hartid == 0), h... |
lariaus/riscv-emu | 1,323 | hello_clang/io.s | .align 2
.section .text
.equ UART_BASE, 0x10010000
.equ UART_REG_TXFIFO, 0
# `puts` subroutine writes null-terminated string to UART (serial communication port)
# input: a0 register specifies the starting address of a null-terminated string
# clobbers: t0, t1, t2 temporary registers
.globl puts
puts:
... |
laurci/x86-machine-code-http-server | 2,185 | test/server_asm.S | section .data
RESPONSE:
db 'HTTP/1.1 200 OK', 0xd, 0xa
db 'Content-Type: text/html', 0xd, 0xa
db 'Content-Length: 154', 0xd, 0xa, 0xd, 0xa
db '<!DOCTYPE html>'
db '<html>'
db '<head>'
db '<title>Elves and CSS</title>'
db '<style>body { background-color: #f0f0f0; }</style>'
db '</hea... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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
... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 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... |
ldos-project/asterinas | 3,820 | 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_EFER_MSR = 0xC0000080
IA32_EFER_BIT_LME = 1 << 8
IA32_EFER_BIT_NXE = 1 << 11
CR0_BIT_PE = 1 << 0
CR0... |
ldos-project/asterinas | 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 ... |
ldq3/ones-riscv | 2,156 | kernel/src/intervene/handler.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.itext
.globl handler_user
.globl load_user_context
.globl handler_kernel
.globl load_kernel_context
.align 2
handler_user:
csrrw sp, sscratch, sp
_save_context:
# save gene... |
lehtojo/metallium | 21,601 | low/x64.s | .intel_syntax noprefix
.global read_msr
read_msr:
mov rcx, rdi
rdmsr
sal rdx, 32
or rax, rdx
ret
.global write_msr
write_msr:
mov rcx, rdi
mov rax, rsi
mov rdx, rsi
shr rdx, 32
wrmsr
ret
.global write_cr0
write_cr0:
mov cr0, rdi
ret
.global write_cr1
write_cr1:
mov cr1, rdi
ret
.global write_cr2
write_cr2:
mov cr2,... |
lehtojo/metallium-loader | 4,864 | low/boot.s | .intel_syntax noprefix
.global enter_kernel
enter_kernel:
# Disable interrupts while we mess around
cli
# Save the kernel entry point and uefi data
mov qword ptr [rip+kernel_entry_point], rcx
mov qword ptr [rip+uefi_information], rdx
# Enable: fxsave, fxrstor, unmasked simd floating point exceptions
mov rax, cr4
or ... |
lemonJumps/pinaplua | 1,693 | pinaple/archDependent/win64.S | # x86-64 MICROSOFT (ew) version
.intel_syntax noprefix
.global pinADcallWIN
# x64 windows calling convention
# RCX, RDX, R8, R9 for integer
# XMM0, XMM1, XMM2, XMM3 for float
# returns RAX when 64bit
# returns XMM0 when float
# for our call:
# r9d contains argument count
# r8 contains array of sizes
# rdx contains ... |
leoraclet/hacking | 5,477 | CTF-2022/Reverse/MVBN/MVBN.s | ; ModuleID = 'source.c'
source_filename = "source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@key = dso_local global [33 x i8] c"7 >)\04\09\00\102\1A}5 q\130L75\19\1Cu|* 5>v\15v/2\02", align 16
@.str = private unnamed_addr const... |
levirogalla/rust-stm32-rtos | 2,233 | src/asm_utils.s | .syntax unified //This lets us use C like comments!
.cpu cortex-m4 //Guess what this does
.thumb //Practically this only matters to the CPU, but it ensures that the correct types of instructions get included
; .global idleThread
; .thumb_func
; idleThread:
; B .
.global SVCall
.thumb_func
SVCall:
tst lr, 4 //TeST... |
levontumanyan/c_programming | 1,140 | beginner/func.s | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 14, 0 sdk_version 14, 2
.globl _funcy ; -- Begin function funcy
.p2align 2
_funcy: ; @funcy
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w9, [s... |
LighTend3r/OwnOS | 2,341 | loader.s | global loader ; the entry symbol for ELF
MAGIC_NUMBER equ 0x1BADB002 ; define the magic number constant
FLAGS equ 0x0 ; multiboot flags
CHECKSUM equ -MAGIC_NUMBER ; calculate the checksum
; (magic number + checksum + ... |
LioranHale/glowight | 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... |
LittleLucifer1/duck_os | 1,169 | os/src/entry.S | .section .text.entry
.globl _start
_start:
# hart_id is in a0, a0 --> tp
# pc = 0x8020_0000
# 1.According to hart_id, set sp to the top
la sp, boot_stack_top
mv tp, a0
slli t0, tp, 16 # 内核栈大小size: (4096 * 16)
sub sp, sp, t0
# 2.set table & satp
# satp: 8 << 60 | boot_pa... |
LittleLucifer1/duck_os | 1,916 | os/src/process/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 # stvec中的BASE必须保证是4字节对齐!因为BASE中表示的地址默认后两位为0
# TODO:暂时没有考虑中断嵌套的问题,如果 U -> S -> S 那会发生什么?
__alltraps:
# 不能使用spp来判断,因为此时没有空余的寄存器可以使用
# 于是这里把sp... |
LittleLucifer1/duck_os | 17,376 | dependency/riscv/asm.S | #include "asm.h"
.section .text.__ebreak
.global __ebreak
__ebreak:
ebreak
ret
.section .text.__wfi
.global __wfi
__wfi:
wfi
ret
.section .text.__sfence_vma_all
.global __sfence_vma_all
__sfence_vma_all:
sfence.vma
ret
.section .text.__sfence_vma
.global __sfence_vma
__sfence_vma:
sfence... |
lkitching/rsdb | 1,468 | src/support/reg_write.s | .global main
.section .data
hex_format: .asciz "%#x"
float_format: .asciz "%.2f"
long_float_format: .asciz "%.2Lf"
.section .text
.macro trap
# kill(pid, SIGTRAP)
movq $62, %rax
movq %r12, %rdi
movq $5, %rsi
syscall
.endm
main:
push %rbp
movq %rsp, %rbp
# get... |
lnxrobots/rcj-soccer-open-gen3 | 24,043 | Undercarriage/Main_stm/Core/Startup/startup_stm32f427vitx.s | /**
******************************************************************************
* @file startup_stm32f427xx.s
* @author MCD Application Team
* @brief STM32F427xx Devices vector table for GCC based toolchains.
* This module performs:
* - Set the initial SP
* ... |
lnxrobots/rcj-soccer-open-gen3 | 15,535 | Undercarriage/Bottom_stm/Core/Startup/startup_stm32g474retx.s | /**
******************************************************************************
* @file startup_stm32g474xx.s
* @author MCD Application Team
* @brief STM32G474xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - S... |
LRenzo0801/ittapi | 12,448 | src/ittnotify/ittptmark32.S | /*
Copyright (C) 2017-2025 Intel Corporation
SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
*/
// /////////////////////////////////////////////////////////////////////////
////// Intel Processor Trace Marker Functionality
////////////////////////////////////////////////////////////////////////////
... |
LRenzo0801/ittapi | 13,242 | src/ittnotify/ittptmark64.S | /*
Copyright (C) 2017-2025 Intel Corporation
SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
*/
// /////////////////////////////////////////////////////////////////////////
////// Intel Processor Trace Marker Functionality
////////////////////////////////////////////////////////////////////////////
... |
lte678/Project-Euler | 3,329 | 9/solution.s | # Finds the pythagorean triplet where a^2 + b^2 = c^2 and a+b+c=1000
# Run with:
# gcc solution.s -no-pie -o solution && ./solution
# Mark the stack a non-executable. Preferred by some versions of ld
.section .note.GNU-stack,"",@progbits
.section .rodata
.globl prefix_str
str1:
.string "The answer is c=" # Alrea... |
lucyyang01/pint-OS | 5,272 | src/threads/start.S | #include "threads/loader.h"
#### Kernel startup code.
#### The loader (in loader.S) loads the kernel at physical address
#### 0x20000 (128 kB) and jumps to "start", defined here. This code
#### switches from real mode to 32-bit protected mode and calls
#### main().
/* Flags in control register 0. */
#define CR0_PE... |
lucyyang01/pint-OS | 7,464 | src/threads/intr-stubs.S | #include "threads/loader.h"
.text
/* Main interrupt entry point.
An internal or external interrupt starts in one of the
intrNN_stub routines, which push the `struct intr_frame'
frame_pointer, error_code, and vec_no members on the stack,
then jump here.
We save the rest of the `struct intr_fra... |
lucyyang01/pint-OS | 7,224 | src/threads/loader.S | #include "threads/loader.h"
#### Kernel loader.
#### This code should be stored in the first sector of a hard disk.
#### When the BIOS runs, it loads this code at physical address
#### 0x7c00-0x7e00 (512 bytes) and jumps to the beginning of it,
#### in real mode. The loader loads the kernel into memory and jumps
###... |
lucyyang01/pint-OS | 1,748 | src/threads/switch.S | #include "threads/switch.h"
#### struct thread *switch_threads (struct thread *cur, struct thread *next);
####
#### Switches from CUR, which must be the running thread, to NEXT,
#### which must also be running switch_threads(), returning CUR in
#### NEXT's context.
####
#### This function works by assuming that the th... |
LylioveinTheSilly/risc-v | 2,005 | assembly/main.s | # Dane są trzy liczby
#
# s0 - dzielna
# s1 - dzielnik
# s2 - number cyfry
#
# Dzieląc s0 przez s1 uzyskujemy liczbę b. (s0 / s1 = b)
# s2 wskazuję n-tą cyfrę za *pierwszą niezerową* cyfrą wyniku
# która jest odpowiedzią na zadanie.
#
# Przykład:
# s0: 100
# s1: 70
# s2: 4
#
# s0 / s1 = 1.4285714285714285
# ... |
LylioveinTheSilly/risc-v | 2,007 | assembly/programs/digit.s | # Dane są trzy liczby
#
# s0 - dzielna
# s1 - dzielnik
# s2 - number cyfry
#
# Dzieląc s0 przez s1 uzyskujemy liczbę b. (s0 / s1 = b)
# s2 wskazuję n-tą cyfrę za *pierwszą niezerową* cyfrą wyniku
# która jest odpowiedzią na zadanie.
#
# Przykład:
# s0: 100
# s1: 70
# s2: 4
#
# s0 / s1 = 1.4285714285714285
# ... |
lyrakisk/vines | 6,228 | examples/color_test/color_test.s | ; full screen color tester
; Brad Smith, 2015
;
; displays a single color on the full screen
; allows emphasis / greyscale toggle
;
.feature force_range
.macpack longbranch
; iNES header
.segment "HEADER"
INES_MAPPER = 0
INES_MIRROR = 0 ; 0 = horizontal mirroring, 1 = vertical mirroring
INES_SRAM = 0 ; 1 = battery... |
LZx-space/lex | 4,416 | src/asm/boot.S | # boot.S
# bootloader
# Disable generation of compressed instructions.
.option norvc
# Define a .text.init section. The .text.init is put at the
# starting address so that the entry _start is put at the RISC-V
# address 0x8000_0000.
.section .text.init
# Execution starts here.
.global _start
_start:
# Disable link... |
macabu/advent-of-code | 7,707 | 2015/01/part1.s | .global _start
.section .text
_start:
la t0, input # offset = *(input + 0)
li t6, 0 # counter = 0
loop:
lb t1, 0(t0) # c = input + offset
beq t1, zero, exit # if (*c == \0) goto exit
addi t0, t0, 1 # offset += 1
li t2, 40 # open = '('
... |
macabu/advent-of-code | 7,890 | 2015/01/part2.s | .global _start
.section .text
_start:
la t0, input # offset = *(input + 0)
li t6, 0 # counter = 0
li t4, 0 # index = 0
li t3, -1 # basement = -1
loop:
beq t6, t3, exit # if (counter == basement) goto exit
lb t1, 0(t0) # c = input + ... |
mammuen/space-invaders | 17,921 | Startup/startup_stm32f302r8tx.s | /**
******************************************************************************
* @file startup_stm32f302r8tx.s
* @author Auto-generated by STM32CubeIDE
* @brief STM32F302R8Tx device vector table for GCC toolchain.
* This module performs:
* - Set the initial SP
* ... |
manalejandro/rustkernel | 2,493 | kernel/src/arch/x86_64/exceptions.s | # SPDX-License-Identifier: GPL-2.0
# Exception handler stubs for x86_64
.section .text
# Macro for exception handlers without error code
.macro EXCEPTION_STUB name, vector
.global \name
\name:
push $0 # Push dummy error code
push $\vector # Push vector number
jmp exception_common... |
manalejandro/rustkernel | 5,655 | kernel/src/arch/x86_64/boot.s | # SPDX-License-Identifier: GPL-2.0
# Rust Kernel boot entry point for x86_64
.section .multiboot_header
header_start:
# Multiboot2 header
.long 0xe85250d6 # magic number
.long 0 # architecture (i386)
.long header_end - header_start # header length
# checksum
... |
ManchesterStingerMotorsports/Auxillary-Systems | 22,858 | Core/Startup/startup_stm32f407vgtx.s | /**
******************************************************************************
* @file startup_stm32f407xx.s
* @author MCD Application Team
* @brief STM32F407xx Devices vector table for GCC based toolchains.
* This module performs:
* - Set the initial SP
* ... |
mari-cult/mmm-os | 2,393 | src/boot.s | .section .text
.global _start
.type _start, @function
_start:
mov x0, #0x300000
msr CPACR_EL1, x0
isb sy
ldr x30, =stack_top
mov sp, x30
# Mask all interrupts
msr DAIFSet, #0b1111
# 1. Load the interrupt vector address into VBAR_EL1
ldr x0, =evt
msr VBAR_EL1, x0
isb sy
... |
marvin-hansen/iggy-streaming-system | 40,218 | thirdparty/crates/ring-0.17.9/pregenerated/chacha-armv8-ios64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
#include <ring-core/arm_arch.h>
.section __TEXT,__const
.align 5
Lsigma:
.quad 0x3320646e6... |
marvin-hansen/iggy-streaming-system | 18,316 | thirdparty/crates/ring-0.17.9/pregenerated/aesni-gcm-x86_64-macosx.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__)
.text
.p2align 5
_aesni_ctr32_ghash_6x:
vmovdqu 32(%r11),%xmm2
subq $6,%rdx
vpxor %xmm... |
marvin-hansen/iggy-streaming-system | 10,896 | thirdparty/crates/ring-0.17.9/pregenerated/ghash-neon-armv8-win64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
#include <ring-core/arm_arch.h>
.text
.globl gcm_init_neon
.def gcm_init_neon
.type 32
.e... |
marvin-hansen/iggy-streaming-system | 190,538 | thirdparty/crates/ring-0.17.9/pregenerated/chacha20_poly1305_x86_64-macosx.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__)
.section __DATA,__const
.p2align 6
chacha20_poly1305_constants:
L$chacha20_consts:
.byte 'e',... |
marvin-hansen/iggy-streaming-system | 10,908 | thirdparty/crates/ring-0.17.9/pregenerated/ghash-neon-armv8-ios64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__)
#include <ring-core/arm_arch.h>
.text
.globl _gcm_init_neon
.private_extern _gcm_init_neon... |
marvin-hansen/iggy-streaming-system | 17,747 | thirdparty/crates/ring-0.17.9/pregenerated/bsaes-armv7-linux32.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_ARM) && defined(__ELF__)
@ Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
@
@ Licensed under the Ope... |
marvin-hansen/iggy-streaming-system | 70,675 | thirdparty/crates/ring-0.17.9/pregenerated/sha256-x86_64-elf.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__)
.text
.globl sha256_block_data_order_nohw
.hidden sha256_block_data_order_nohw
.type sha256_b... |
marvin-hansen/iggy-streaming-system | 4,299 | thirdparty/crates/ring-0.17.9/pregenerated/ghashv8-armx-linux64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__)
#include <ring-core/arm_arch.h>
#if __ARM_MAX_ARCH__>=7
.text
.arch armv8-a+crypto
.globl gcm... |
marvin-hansen/iggy-streaming-system | 4,229 | thirdparty/crates/ring-0.17.9/pregenerated/x86-mont-elf.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86) && defined(__ELF__)
.text
.globl bn_mul_mont
.hidden bn_mul_mont
.type bn_mul_mont,@function
.align 16
bn_mul_mont:
.L... |
marvin-hansen/iggy-streaming-system | 42,821 | thirdparty/crates/ring-0.17.9/pregenerated/sha512-armv4-linux32.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_ARM) && defined(__ELF__)
@ Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
@
@ Licensed under the Ope... |
marvin-hansen/iggy-streaming-system | 20,965 | thirdparty/crates/ring-0.17.9/pregenerated/aesni-x86_64-elf.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__)
.text
.type _aesni_encrypt2,@function
.align 16
_aesni_encrypt2:
.cfi_startproc
movups (%rcx... |
marvin-hansen/iggy-streaming-system | 11,047 | thirdparty/crates/ring-0.17.9/pregenerated/vpaes-x86_64-macosx.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__)
.text
.p2align 4
_vpaes_encrypt_core:
movq %rdx,%r9
movq $16,%r11
movl ... |
marvin-hansen/iggy-streaming-system | 78,605 | thirdparty/crates/ring-0.17.9/pregenerated/p256-x86_64-asm-elf.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__)
.text
.section .rodata
.align 64
.Lpoly:
.quad 0xffffffffffffffff, 0x00000000ffffffff, 0x000... |
marvin-hansen/iggy-streaming-system | 30,683 | thirdparty/crates/ring-0.17.9/pregenerated/armv8-mont-win64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
#include <ring-core/arm_arch.h>
.text
.globl bn_mul_mont_nohw
.def bn_mul_mont_nohw
.type... |
marvin-hansen/iggy-streaming-system | 74,019 | thirdparty/crates/ring-0.17.9/pregenerated/chacha20_poly1305_armv8-win64.S | // This file is generated from a similarly-named Perl script in the BoringSSL
// source tree. Do not edit by hand.
#include <ring-core/asm_base.h>
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32)
#include <ring-core/arm_arch.h>
.section .rodata
.align 7
Lchacha20_consts:
.byte 'e','x','p',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.