mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
Fix RISC-V stack allocation (#988)
This commit is contained in:
parent
3d169bd80c
commit
a40ea79277
@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Async RMT channels can be used concurrently (#925)
|
||||
- Xtensa: Allow using `embassy-executor`'s thread-mode executor if neither `embassy-executor-thread`, nor `embassy-executor-interrupt` is enabled. (#937)
|
||||
- Uart Async: Improve interrupt handling and irq <--> future communication (#977)
|
||||
- RISC-V: Fix stack allocation (#988)
|
||||
|
||||
### Removed
|
||||
|
||||
|
@ -427,8 +427,9 @@ _abs_start:
|
||||
|
||||
// Allocate stack
|
||||
la sp, _stack_start
|
||||
lui t0, 16
|
||||
li t0, 4 // make sure stack start is in RAM
|
||||
sub sp, sp, t0
|
||||
andi sp, sp, -16 // Force 16-byte alignment
|
||||
|
||||
// Set frame pointer
|
||||
add s0, sp, zero
|
||||
|
Loading…
x
Reference in New Issue
Block a user