Skip to content
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

Fix stack-top calculation for app-core #1081

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Jan 15, 2024

Fixes stack-top calculation for app-core.

Since the pointer is *mut u32 we need to divide the stack size (in bytes) by 4

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also use https://doc.rust-lang.org/std/primitive.pointer.html#method.byte_add but either way is fine with me!

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Jan 15, 2024

Thought about it but it's 1.75+ and cause CI issues then ... I guess we can revise all those places at some later time (IIRC we have similar things in a lot of places)

@bjoernQ bjoernQ added this pull request to the merge queue Jan 15, 2024
Merged via the queue into esp-rs:main with commit a23d6a0 Jan 15, 2024
17 checks passed
@bjoernQ bjoernQ deleted the fix/core-1-stack-size branch January 15, 2024 14:46
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