Skip to content

sw: Fix runtime exit routine#51

Open
Smephite wants to merge 2 commits intopulp-platform:mainfrom
Smephite:fix/runtime_exit
Open

sw: Fix runtime exit routine#51
Smephite wants to merge 2 commits intopulp-platform:mainfrom
Smephite:fix/runtime_exit

Conversation

@Smephite
Copy link

@Smephite Smephite commented Dec 8, 2025

Fix runtime exit routine not recovering return address correctly.

This bug applied only to core 0 of any cluster.

For the call to snrt_set_eoc_and_return_code, the ra register was not saved, thus returning to an unexpected location after finishing _snrt_exit.

@Smephite Smephite changed the title sw: Fix runtime routine sw: Fix runtime exit routine Dec 8, 2025
@anga93
Copy link
Member

anga93 commented Feb 3, 2026

Hi @Smephite can you rebase on the current main? Afterwards, we will review it and merge it

Fix runtime exit routine not recovering return address correctly
Use cluster local core ID for determining which core is to set EOC instead of global one.
This fixes multi-cluster configurations not setting the EOC correctly on cluster != 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants