riscv32::swap: fix stack push/pop asm #2

Merged
sb10q merged 1 commits from morgan/libfringe:master into master 2024-05-23 15:56:33 +08:00
Member

Summary

  • fix illegalinstruction at PC 0x00 exception when interrupting kasli 2.0 runtime scheduler
    • before the patch, if the CPU is interrupted at sw or lw, the stack will be corrupted and return to the wrong address 0x00

Testing

  • tested with WRPLL interrupt on kasli 2.0 runtime
## Summary - fix `illegalinstruction at PC 0x00` exception when interrupting kasli 2.0 runtime scheduler - before the patch, if the CPU is interrupted at `sw` or `lw`, the stack will be corrupted and return to the wrong address 0x00 ## Testing - tested with WRPLL interrupt on kasli 2.0 runtime
morgan added 1 commit 2024-05-23 15:39:47 +08:00
sb10q merged commit 53a964a63d into master 2024-05-23 15:56:33 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/libfringe#2
No description provided.