mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Completely remove UVM32_STACK_PROTECTION unless enabled (requires manually changing crt0.S), as this saves 16 bytes on every .bin
This commit is contained in:
parent
c1399fbe86
commit
173d5056a5
17 changed files with 6 additions and 5 deletions
|
|
@ -9,9 +9,10 @@
|
|||
.align 4
|
||||
_start:
|
||||
|
||||
la a0, _estack
|
||||
li a7, uvm32_syscall_stackprotect
|
||||
ecall
|
||||
# Uncomment below to enable stack protection, requires -DUVM32_STACK_PROTECTION
|
||||
# la a0, _estack
|
||||
# li a7, uvm32_syscall_stackprotect
|
||||
# ecall
|
||||
|
||||
# sp is already setup by vm
|
||||
sw ra,12(sp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue