mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Move all app common files under apps/common
This commit is contained in:
parent
60f362b819
commit
5bd6a32013
31 changed files with 49 additions and 49 deletions
24
apps/common/crt0.S
Normal file
24
apps/common/crt0.S
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include "uvm32_sys.h"
|
||||
|
||||
.equ uvm32_syscall_halt, 0x1000000
|
||||
.equ uvm32_syscall_yield, 0x1000001
|
||||
.equ uvm32_syscall_stackprotect, 0x1000002
|
||||
|
||||
.section .initial_jump , "ax", %progbits
|
||||
.global _start
|
||||
.align 4
|
||||
_start:
|
||||
|
||||
la a0, _estack
|
||||
li a7, uvm32_syscall_stackprotect
|
||||
ecall
|
||||
|
||||
# sp is already setup by vm
|
||||
sw ra,12(sp)
|
||||
jal ra, main
|
||||
|
||||
li a7, uvm32_syscall_halt
|
||||
ecall
|
||||
|
||||
.section .data
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue