repo_id stringlengths 5 115 | size int64 590 5.01M | file_path stringlengths 4 212 | content stringlengths 590 5.01M |
|---|---|---|---|
georgevio/IoT-Embedded | 7,653 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_resize.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
.align 2
.text
.global dl_esp32p4_s8_resize_nearest_2x2_c1
.type dl_esp32p4_s8_resize_nearest_2x2_c1, @function
dl_esp32p4_s8_resize_nearest_2x2_c1:
.align 2
esp32p4_push_128_stacks_4r s0, s1, s8, s9
# a0: int8_t *output_ptr
# a... |
georgevio/IoT-Embedded | 40,868 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_add2d.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
############################################################################################################################################################
####
#### esp32p4_s8_add2d_11c series
####
#############################################################... |
georgevio/IoT-Embedded | 7,815 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_requantize_linear.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
.text
.align 2
.global dl_esp32p4_s8_s8_requantize_linear
.type dl_esp32p4_s8_s8_requantize_linear, @function
.balign 4
.option norvc
dl_esp32p4_s8_s8_requantize_linear:
# a0: int8_t *output_ptr
# a1: int8_t *input_ptr
# ... |
georgevio/IoT-Embedded | 15,550 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_greater.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
#void dl_esp32p4_s8_greater_w1_16_w2_16(bool *output_ptr, int8_t *input0_ptr, int8_t *input1_ptr, int lenght);
.align 2
.text
.global dl_esp32p4_s8_greater_w1_16_w2_16
.type dl_esp32p4_s8_greater_w1_16_w2_16, @function
#.section .iram1
... |
georgevio/IoT-Embedded | 14,525 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_xor4d.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
#void dl_esp32p4_s8_xor4d_bchw_w1_16_w2_16_simdxor(int8_t *output_ptr, int8_t *input0_ptr, int8_t *input1_ptr, int lenght);
.align 2
.text
.global dl_esp32p4_s8_xor4d_bchw_w1_16_w2_16_simdxor
.type dl_esp32p4_s8_xor4d_bchw_w1_16_w2_16_simdxo... |
georgevio/IoT-Embedded | 3,750 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_prelu.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_common.S"
.align 2
.text
.global dl_esp32p4_s8_prelu_11c
.type dl_esp32p4_s8_prelu_11c, @function
dl_esp32p4_s8_prelu_11c:
.align 2
esp32p4_push_128_stacks_4r s0, s1, s8, s9
# a0: int8_t *output_ptr
# a1: int8_t *input_ptr
# a2: vo... |
georgevio/IoT-Embedded | 7,923 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8.S |
############################################################################################################################################################
# result process for conv2d / depthwise_conv2d
##################################################################################################################... |
georgevio/IoT-Embedded | 15,882 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s16_greaterorequal.S | #include "dl_esp32p4_s8.S"
#include "dl_esp32p4_s16.S"
#include "dl_esp32p4_common.S"
#void dl_esp32p4_s16_greaterorequal_w1_8_w2_8(bool *output_ptr, int16_t *input0_ptr, int16_t *input1_ptr, int lenght);
.align 2
.text
.global dl_esp32p4_s16_greaterorequal_w1_8_w2_8
.type dl_esp32p4_s16_greateror... |
georgevio/IoT-Embedded | 32,480 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_depthwise_conv2d.S | #include "dl_esp32p4_s8.S"
############################################################################################################################################################
####
#### esp32p4_s8_depthwise_conv2d_33c1 series
####
################################################################################... |
georgevio/IoT-Embedded | 33,602 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s8_conv2d.S | #include "dl_esp32p4_s8.S"
############################################################################################################################################################
####
#### esp32p4_s8_conv2d_11cn series
####
##########################################################################################... |
georgevio/IoT-Embedded | 39,676 | esp-idf/esp32-s3-face-recogn/managed_components/espressif__esp-dl/dl/base/isa/esp32p4/dl_esp32p4_s16_add2d.S | #include "dl_esp32p4_s16.S"
#include "dl_esp32p4_common.S"
############################################################################################################################################################
####
#### esp32p4_s16_add2d_11c series
####
###########################################################... |
gitwillsky/learning_rcore | 1,074 | ch2/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 "../ch2_user/target/ris... |
gitwillsky/learning_rcore | 1,727 | ch2/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
# allocat... |
gitwillsky/learning_rcore | 2,629 | ch5/src/link_app.S |
.align 3
.section .data
.global _num_app
_num_app:
.quad 11
.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
... |
gitwillsky/learning_rcore | 1,822 | ch5/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 spa... |
gitwillsky/learning_rcore | 1,324 | ch4/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
.align 3
app_0_start:
... |
gitwillsky/learning_rcore | 1,822 | ch4/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 spa... |
gitwillsky/learning_rcore | 1,074 | ch3/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 "../ch3_user/target/ris... |
gitwillsky/learning_rcore | 1,627 | ch3/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
# allocat... |
gk69-cz/Static-malware-analyser | 23,728 | executable/Ghidra/Processors/HCS08/data/test-vectors/HCS08_tv.s | .hcs08
.area DIRECT (PAG)
;.setdp 0, DIRECT
;low_data1:
;.ds 1
.area PROGRAM (ABS)
.org 0x80
LOW_SUB_TEST:
RTS
.org 0x2000
HIGH_SUB_TEST:
RTS
; @if defined(HCS08) || defined(HC08) || defined(HC05)
; : ADC OP1 is (op=0xA9 | op=0xB9 | op=0xC9 | op=0xD9 | op=0xE9 | op=0xF9) ... & OP1
ADC #0xFE... |
gk69-cz/Static-malware-analyser | 23,835 | executable/Ghidra/Processors/HCS08/data/test-vectors/HC05_tv.s | .hc05
.area DIRECT (PAG)
;.setdp 0, DIRECT
;low_data1:
;.ds 1
.area PROGRAM (ABS)
.org 0x80
LOW_SUB_TEST:
RTS
.org 0x2000
HIGH_SUB_TEST:
RTS
; @if defined(HCS08) || defined(HC08) || defined(HC05)
; : ADC OP1 is (op=0xA9 | op=0xB9 | op=0xC9 | op=0xD9 | op=0xE9 | op=0xF9) ... & OP1
ADC #0xFE
... |
gk69-cz/Static-malware-analyser | 23,737 | executable/Ghidra/Processors/HCS08/data/test-vectors/HC08_tv.s | .hc08
.area DIRECT (PAG)
;.setdp 0, DIRECT
;low_data1:
;.ds 1
.area PROGRAM (ABS)
.org 0x80
LOW_SUB_TEST:
RTS
.org 0x2000
HIGH_SUB_TEST:
RTS
; @if defined(HCS08) || defined(HC08) || defined(HC05)
; : ADC OP1 is (op=0xA9 | op=0xB9 | op=0xC9 | op=0xD9 | op=0xE9 | op=0xF9) ... & OP1
ADC #0xFE
... |
goetzr/embedded_learning | 1,532 | stm32/boards/stm32-f3discovery/projects/blink-led/asm/src/led.S | @ Registers
.set .LRCC_AHBENR, 0x40021014
.set .LGPIOE_MODER, 0x48001000
.set .LGPIOE_BSRR, 0x48001018
@ Bit fields
.set .LIOPEEN, 21
.set .LMODER8, 16
.set .LBS8, 8
.set .LBR8, 24
.section .text.led, "ax", %progbits
.align 1
.syntax unified
/*
Performs the... |
goetzr/embedded_learning | 2,474 | stm32/boards/stm32-f3discovery/projects/blink-led/asm/src/delay.S | @ RCC
.set .LRCC_BASE, 0x40021000
.set .LRCC_CFGR, .LRCC_BASE + 0x04
.set .LPPRE1, 8
.set .LRCC_APB1ENR, .LRCC_BASE + 0x1C
.set .LTIM6EN, 4
@ TIM6
.set .LTIM6_BASE, 0x40001000
.set .LTIM6_CR1, .LTIM6_BASE + 0x00
.set .LUIFREMAP, 11
.set .LCEN, 0
.set .LTIM6_SR, .LTIM6_BA... |
graves/dinoxor | 7,228 | reference/dinoxor.s | .global _dinoxor
.text
// Function: dinoxor
// Description: Orchestrates a series of operations to replicate a bitwise XOR
// operation using NEON registers. This function initializes a XOR truth table,
// calculates an index based on provided Xindex and Yindex, and creates a
// ... |
GraySinclair/switch-cfw | 1,253 | Switch Backup 9:22/fusee-launcher/intermezzo.S | //
// Payload launcher stub.
//
.globl _start
.section ".text"
_start:
// First, we'll need to move ourselves _out_ of the target area.
// We'll copy down into the IRAM.
ldr r0, =INTERMEZZO_RELOCATED_ADDRESS
ldr r1, =post_relocation
ldr r2, =intermezzo_end
sub r2, r2, r1
bl copy
// ... |
gulybyte/algorithms | 1,782 | calc/nasm/main.s | %include 'utils.inc'
%include 'calc.inc'
section .data
msgOption db LF,'What is the option number to proceed? ', NULL
msgError db 'Invalid Option Value',LF, NULL
msgEnd db LF,'Program finished', LF, NULL
numVal1 db LF,'Value 1: ', NULL
numVal2 db LF,'Value 2: ', NULL
options db LF,'1. Addition',LF,'... |
guoraymon/rr-os | 1,801 | os/src/trap.S | .section .text
.global __trap
__trap:
csrrw sp, sscratch, sp # now sp is kernel stack
addi sp, sp, -34*8
csrr t0, sstatus
csrr t1, sepc
csrr t2, sscratch
sd t0, 32*8(sp) # sstatus
sd t1, 33*8(sp) # sepc
sd t2, 2*8(sp) # sp
sd x1, 1*8(sp)
sd x3, 3*8(sp)
sd x4, 4*8(sp)
sd... |
gustafla/compilers-project | 8,454 | src/asm/stdlib.s | # Copyright 2025 Martin Pärtel
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribut... |
hainakus/Xenomorph | 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... |
hainakus/Xenomorph | 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... |
hainakus/Xenomorph | 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... |
hainakus/Xenomorph | 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... |
Hammad-Izhar/reenix | 2,154 | src/boot/boot.S | .global _start
.set KERNEL_OFFSET, 0xC0000000
.set KERNEL_STACK_SIZE, 0x1000 // 4 KiB
.set KERNEL_STACK_START_PA, __kernel_stack_start - KERNEL_OFFSET
.set PML4_PA, pml4 - KERNEL_OFFSET
.set PDPT_PA, pdpt - KERNEL_OFFSET
.set PDT_PA, pdt - KERNEL_OFFSET
.section .bss
.align 0x1000
pml4:
.skip 0x100... |
haohano/rust-sgx | 1,266 | intel-sgx/report-test/enclave/main.S | /* Copyright (c) Fortanix, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.equ targetinfo, .+0x3000
.equ reportdata, targetinfo+512
.equ report, reportda... |
haohano/rust-sgx | 1,730 | rs-libc/src/asm/x86_64/copysignl.S | .file "copysignl.c"
.text
..TXTST0:
# -- Begin copysignl
.text
.align 16,0x90
.globl copysignl
copysignl:
# parameter 1: 64 + %rsp
# parameter 2: 80 + %rsp
..B1.1:
.cfi_startproc
..___tag_value_copysignl.1:
..L2:
subq $56, %rsp
.cfi_def_cfa_offset 64
xorb %sil, %sil
f... |
haohano/rust-sgx | 1,799 | rs-libc/src/asm/x86_64/frexp_gen.S | .file "frexp_gen.c"
.text
..TXTST0:
# -- Begin frexp
.text
.align 16,0x90
.globl frexp
frexp:
# parameter 1: %xmm0
# parameter 2: %rdi
..B1.1:
.cfi_startproc
..___tag_value_frexp.1:
..L2:
movsd %xmm0, -8(%rsp)
movl -4(%rsp), %eax
movl %eax, %edx
andl $... |
haohano/rust-sgx | 6,097 | rs-libc/src/asm/x86_64/scalbnl.S | .file "scalbnl.c"
.text
..TXTST0:
# -- Begin scalbnl
.text
.align 16,0x90
.globl scalbnl
scalbnl:
# parameter 1: 32 + %rsp
# parameter 2: %edi
..B1.1:
.cfi_startproc
..___tag_value_scalbnl.1:
..L2:
subq $24, %rsp
.cfi_def_cfa_offset 32
..B1.2:
fnstcw 18(%rsp)
..B1.3:
mo... |
haohano/rust-sgx | 1,406 | rs-libc/src/asm/x86_64/jmp.S | /* Copyright (c) Fortanix, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// To be used with a jmp_buf of at least 70 bytes.
//
// Interesting discussion... |
haohano/rust-sgx | 6,124 | rs-libc/src/asm/x86_64/scalblnl.S | .file "scalblnl.c"
.text
..TXTST0:
# -- Begin scalblnl
.text
.align 16,0x90
.globl scalblnl
scalblnl:
# parameter 1: 32 + %rsp
# parameter 2: %rdi
..B1.1:
.cfi_startproc
..___tag_value_scalblnl.1:
..L2:
subq $24, %rsp
.cfi_def_cfa_offset 32
..B1.2:
fnstcw 18(%rsp)
..B1.3:
... |
haohano/rust-sgx | 3,017 | rs-libc/src/asm/x86_64/frexpl.S | .file "frexpl.c"
.text
..TXTST0:
# -- Begin frexpl
.text
.align 16,0x90
.globl frexpl
frexpl:
# parameter 1: 32 + %rsp
# parameter 2: %rdi
..B1.1:
.cfi_startproc
..___tag_value_frexpl.1:
..L2:
subq $24, %rsp
.cfi_def_cfa_offset 32
..B1.2:
fnstcw 18(%rsp)
..B1.3:
movzwl ... |
haohano/rust-sgx | 6,088 | rs-libc/src/asm/x86_64/ldexpl.S | .file "ldexpl.c"
.text
..TXTST0:
# -- Begin ldexpl
.text
.align 16,0x90
.globl ldexpl
ldexpl:
# parameter 1: 32 + %rsp
# parameter 2: %edi
..B1.1:
.cfi_startproc
..___tag_value_ldexpl.1:
..L2:
subq $24, %rsp
.cfi_def_cfa_offset 32
..B1.2:
fnstcw 18(%rsp)
..B1.3:
movzwl ... |
haohano/rust-sgx | 1,934 | rs-libc/src/asm/x86_64/frexpf.S | .file "frexpf.c"
.text
..TXTST0:
# -- Begin frexpf
.text
.align 16,0x90
.globl frexpf
frexpf:
# parameter 1: %xmm0
# parameter 2: %rdi
..B1.1:
.cfi_startproc
..___tag_value_frexpf.1:
..L2:
movd %xmm0, %edx
movss %xmm0, -8(%rsp)
movl %edx, %eax
andl $21... |
haohano/rust-sgx | 3,538 | rs-libc/src/asm/x86_64/scalbn_gen.S | .file "scalbn_gen.c"
.text
..TXTST0:
# -- Begin scalbn
.text
.align 16,0x90
.globl scalbn
scalbn:
# parameter 1: %xmm0
# parameter 2: %edi
..B1.1:
.cfi_startproc
..___tag_value_scalbn.1:
..L2:
movsd %xmm0, -8(%rsp)
movzwl -2(%rsp), %esi
movl %esi, %ecx
andl ... |
haohano/rust-sgx | 5,960 | rs-libc/src/asm/x86_64/fmodl.S | .file "fmodl.c"
.text
..TXTST0:
# -- Begin fmodl
.text
.align 16,0x90
.globl fmodl
fmodl:
# parameter 1: 80 + %rsp
# parameter 2: 96 + %rsp
..B1.1:
.cfi_startproc
..___tag_value_fmodl.1:
..L2:
subq $72, %rsp
.cfi_def_cfa_offset 80
xorb %dl, %dl
fldt 80(%rsp)
... |
HaoLi555/os | 2,008 | 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... |
haozixu/oscamp | 4,857 | arceos/exercises/simple_hv/src/guest.S |
/// Enter the guest given in `VmCpuRegisters` from `a0`
.global _run_guest
_run_guest:
/* Save hypervisor state */
/* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */
sd ra, ({hyp_ra})(a0)
sd gp, ({hyp_gp})(a0)
sd tp, ({hyp_tp})(a0)
sd s0, ({hyp... |
haozixu/oscamp | 1,827 | 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 = .;
}
.rodata : ALIGN(4K) {
_srodata = .;
*(.ro... |
haozixu/oscamp | 4,307 | 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... |
haozixu/oscamp | 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... |
haozixu/oscamp | 1,839 | 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... |
haozixu/oscamp | 1,505 | 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 ... |
haozixu/oscamp | 2,415 | arceos/modules/axhal/src/arch/aarch64/trap.S | .macro SAVE_REGS
sub sp, sp, 34 * 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]
stp x14, x15, [sp, 14 * 8]
stp x16, x... |
haozixu/oscamp | 4,857 | arceos/modules/riscv_vcpu/src/guest.S |
/// Enter the guest given in `VmCpuRegisters` from `a0`
.global _run_guest
_run_guest:
/* Save hypervisor state */
/* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */
sd ra, ({hyp_ra})(a0)
sd gp, ({hyp_gp})(a0)
sd tp, ({hyp_tp})(a0)
sd s0, ({hyp... |
haozixu/oscamp | 3,437 | arceos/modules/riscv_vcpu/src/mem_extable.S | // Copyright (c) 2022 by Rivos Inc.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Very unoptimized memcpy() to/from guest memory functions, using the HLV/HSV instructions.
// Adds the instruction at 'lbl' to the exception table.
.macro add_extabl... |
haozixu/oscamp | 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
//-----------------------------------------------------------------------------------... |
haozixu/oscamp | 4,857 | arceos/tour/h_1_0/src/guest.S |
/// Enter the guest given in `VmCpuRegisters` from `a0`
.global _run_guest
_run_guest:
/* Save hypervisor state */
/* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */
sd ra, ({hyp_ra})(a0)
sd gp, ({hyp_gp})(a0)
sd tp, ({hyp_tp})(a0)
sd s0, ({hyp... |
haourgot123/STM32-PROJECT | 12,040 | Servo/MDK-ARM/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 1,912 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S |
#if defined (__CC_ARM)
#if (defined (ARM_MATH_CM0))
#include "ARMCC\startup_armv6-m.s"
#elif (defined (ARM_MATH_CM0P))
#include "ARMCC\startup_armv6-m.s"
#elif (defined (ARM_MATH_CM3))
#include "ARMCC\startup_armv7-m.s"
#elif (defined (ARM_MATH_CM4))
#include "ARMCC\startup_armv7-m.s"
#elif... |
haourgot123/STM32-PROJECT | 7,083 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s | ;/* File: startup_armv7-m.s
; * Purpose: startup file for armv7-m architecture devices.
; * Should be used with ARMCC
; * Version: V2.00
; * Date: 16 November 2015
; *
; */
;/* Copyright (c) 2011 - 2014 ARM LIMITED
;
; All rights reserved.
; Redistribution and use in source and binary forms, with or withou... |
haourgot123/STM32-PROJECT | 6,394 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s | ;/* File: startup_armv6-m.s
; * Purpose: startup file for armv7-m architecture devices.
; * Should be used with ARMCC
; * Version: V2.00
; * Date: 16 November 2015
; *
; */
;/* Copyright (c) 2011 - 2014 ARM LIMITED
;
; All rights reserved.
; Redistribution and use in source and binary forms, with or withou... |
haourgot123/STM32-PROJECT | 7,347 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S | /* File: startup_armv7-m.S
* Purpose: startup file for armv7-m architecture devices.
* Should be used with GCC for ARM Embedded Processors
* Version: V2.00
* Date: 16 November 2015
*
*/
/* Copyright (c) 2011 - 2015 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms,... |
haourgot123/STM32-PROJECT | 7,290 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S | /* File: startup_armv6-m.S
* Purpose: startup file for armv6-m architecture devices.
* Should be used with GCC for ARM Embedded Processors
* Version: V2.00
* Date: 16 November 2015
*
*/
/* Copyright (c) 2011 - 2015 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms,... |
haourgot123/STM32-PROJECT | 6,458 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S | /* File: startup_armv7-m.S
* Purpose: startup file for armv7-m architecture devices.
* Should be used with ARMCLANG
* Version: V2.00
* Date: 16 November 2015
*
*/
/* Copyright (c) 2011 - 2015 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms, with or without
mod... |
haourgot123/STM32-PROJECT | 5,756 | Servo/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S | /* File: startup_armv6-m.S
* Purpose: startup file for armv6-m architecture devices.
* Should be used with ARMCLANG
* Version: V2.00
* Date: 16 November 2015
*
*/
/* Copyright (c) 2011 - 2015 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms, with or without
mod... |
haourgot123/STM32-PROJECT | 5,360 | Servo/Drivers/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S | ;/* ----------------------------------------------------------------------
; * Project: CMSIS DSP Library
; * Title: arm_bitreversal2.S
; * Description: arm_bitreversal_32 function done in assembly for maximum speed.
; * Called after doing an fft to reorder the output.
; * The f... |
haourgot123/STM32-PROJECT | 11,653 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f102xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f102xb.s
;* Author : MCD Application Team
;* Description : STM32F102xB USB Line Devices vector table for
;* EWARM toolchain.
;* This module ... |
haourgot123/STM32-PROJECT | 13,220 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f100xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f100xb.s
;* Author : MCD Application Team
;* Description : STM32F100xB Value Line Devices vector table
;* for EWARM toolchain.
;* This modul... |
haourgot123/STM32-PROJECT | 16,265 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f105xc.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics *******************
;* File Name : startup_stm32f105xc.s
;* Author : MCD Application Team
;* Description : STM32F105xC Connectivity line devices vector table for
;* EWARM toolchain.
;* This... |
haourgot123/STM32-PROJECT | 11,217 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f101xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xb.s
;* Author : MCD Application Team
;* Description : STM32F101xB Access Line Devices vector table for
;* EWARM toolchain.
;* This modu... |
haourgot123/STM32-PROJECT | 16,290 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f107xc.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics *******************
;* File Name : startup_stm32f107xc.s
;* Author : MCD Application Team
;* Description : STM32F107xC Connectivity line devices vector table for
;* EWARM toolchain.
;* This... |
haourgot123/STM32-PROJECT | 12,299 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103x6.s
;* Author : MCD Application Team
;* Description : STM32F103x6 Performance Line Devices vector table for EWARM
;* toolchain.
;* This ... |
haourgot123/STM32-PROJECT | 11,326 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f102x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f102x6.s
;* Author : MCD Application Team
;* Description : STM32F102x6 USB Line Devices vector table for EWARM
;* toolchain.
;* This module p... |
haourgot123/STM32-PROJECT | 10,886 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f101x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101x6.s
;* Author : MCD Application Team
;* Description : STM32F101x6 Access Line Devices vector table for EWARM
;* toolchain.
;* This modul... |
haourgot123/STM32-PROJECT | 16,083 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xg.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xg.s
;* Author : MCD Application Team
;* Description : STM32F103xG Performances Line Devices vector table for EWARM
;* toolchain.
;* Thi... |
haourgot123/STM32-PROJECT | 14,777 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f101xg.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xg.s
;* Author : MCD Application Team
;* Description : STM32F101xG Access Line Devices vector table for EWARM
;* toolchain.
;* This modu... |
haourgot123/STM32-PROJECT | 13,822 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f101xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xe.s
;* Author : MCD Application Team
;* Description : STM32F101xE Access Line Devices vector table for EWARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 15,855 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xe.s
;* Author : MCD Application Team
;* Description : STM32F103xE Performance Line Devices vector table for EWARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 12,568 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Performance Line Devices vector table for
;* EWARM toolchain.
;* This... |
haourgot123/STM32-PROJECT | 15,214 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f100xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f100xe.s
;* Author : MCD Application Team
;* Description : STM32F100xE Value Line Devices vector table
;* for EWARM toolchain.
;* This modul... |
haourgot123/STM32-PROJECT | 11,504 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f102xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f102xb.s
;* Author : MCD Application Team
;* Description : STM32F102xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 13,340 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f100xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f100xb.s
;* Author : MCD Application Team
;* Description : STM32F100xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 14,817 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f105xc.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f105xc.s
;* Author : MCD Application Team
;* Description : STM32F105xC Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 11,177 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f101xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xb.s
;* Author : MCD Application Team
;* Description : STM32F101xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 14,993 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f107xc.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f107xc.s
;* Author : MCD Application Team
;* Description : STM32F107xC Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 11,680 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103x6.s
;* Author : MCD Application Team
;* Description : STM32F103x6 Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 11,129 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f102x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f102x6.s
;* Author : MCD Application Team
;* Description : STM32F102x6 Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 10,814 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f101x6.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101x6.s
;* Author : MCD Application Team
;* Description : STM32F101x6 Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 15,017 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xg.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xg.s
;* Author : MCD Application Team
;* Description : STM32F103xG Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 13,994 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f101xg.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xg.s
;* Author : MCD Application Team
;* Description : STM32F101xG Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 13,251 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f101xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f101xe.s
;* Author : MCD Application Team
;* Description : STM32F101xE Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 14,563 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xe.s
;* Author : MCD Application Team
;* Description : STM32F103xE Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 12,055 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 14,897 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f100xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f100xe.s
;* Author : MCD Application Team
;* Description : STM32F100xE Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
haourgot123/STM32-PROJECT | 9,099 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102xb.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f102xb.s
* @author MCD Application Team
* @brief STM32F102xB Value Line Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
*... |
haourgot123/STM32-PROJECT | 10,073 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xb.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f100xb.s
* @author MCD Application Team
* @brief STM32F100xB Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
haourgot123/STM32-PROJECT | 11,753 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f105xc.s
* @author MCD Application Team
* @brief STM32F105xC Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
haourgot123/STM32-PROJECT | 8,809 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xb.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f101xb.s
* @author MCD Application Team
* @brief STM32F101xB Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
haourgot123/STM32-PROJECT | 12,008 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f107xc.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f107xc.s
* @author MCD Application Team
* @brief STM32F107xC Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
haourgot123/STM32-PROJECT | 9,272 | Servo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s | /**
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
* @file startup_stm32f103x6.s
* @author MCD Application Team
* @brief STM32F103x6 Devices vector table for Atollic toolchain.
* This module performs:
* - Set the initial SP
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.