Fix RISC-V stack allocation (#988)

This commit is contained in:
Björn Quentin 2023-12-01 10:17:00 +01:00 committed by GitHub
parent 3d169bd80c
commit a40ea79277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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