8000 Stack thunk yield() fixes by mcspr · Pull Request #9224 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Stack thunk yield() fixes #9224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 24, 2025
Merged

Conversation

mcspr
Copy link
Collaborator
@mcspr mcspr commented Jan 24, 2025

Resolve #9170
Resolve #9218

See earlephilhower/bearssl-esp8266#19

upd from the original Sep 2024 version
can_yield() + yield() -> optimistic_yield(10000) (aka 10ms) for a shorter func body

8000
mcspr added 3 commits January 24, 2025 05:44
implement stack_thunk_yield() which is called within bssl
stack overflow checks for cont would always fail otherwise
@mcspr mcspr merged commit 1a13ab9 into esp8266:master Jan 24, 2025
28 checks passed
@mcspr mcspr deleted the bearssl/stack-thunk-yield branch January 24, 2025 07:17
mcspr added a commit to mcspr/esp8266-Arduino that referenced this pull request May 29, 2025
Post esp8266#9224, allow to call 'stack_thunk_yield()' outside of bssl context
Reset 'stack_thunk_save' before returning from 'thunk_...'ed function
mcspr added a commit that referenced this pull request May 29, 2025
post #9224, allow to call 'stack_thunk_yield()' outside of bssl context

Reset 'stack_thunk_save' before returning from 'thunk_...'ed function
Skip invalid a1 load and yield with the current value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant
0