8000 cortex-m: cleanup linker constants by ppannuto · Pull Request #3150 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cortex-m: cleanup linker constants #3150

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 1 commit into from
Nov 19, 2023
Merged

Conversation

ppannuto
Copy link
Member

Pull Request Overview

This is the follow-on to #3147 that does the real fix here. I still think #3147 should go in for 2.1 as a quick-fix, and then this can come in after as the better fix.

This fixes the type imports from the linker script to match reality (they're const pointers). I think this was just some real legacy stuff that predated our understanding of Rust.

Testing Strategy

Todo: will test on HW when I'm in the office next week.

TODO or Help Wanted

^see above

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

8000
Copy link
Contributor
@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

@bradjc bradjc added the blocked-AfterRelease Waiting for an active release process to finish label Aug 22, 2022
@bradjc bradjc added waiting-on-author and removed blocked-AfterRelease Waiting for an active release process to finish labels Sep 7, 2022
These were the wrong type (they're all pointers..) and should not
have been `mut`.
@ppannuto ppannuto force-pushed the linker-constant-cleanup branch from 2454555 to 53d0db4 Compare October 7, 2022 01:00
@hudson-ayers
Copy link
Contributor

I think we should also apply these changes to here:

extern "C" {

and here https://github.com/tock/tock/blob/master/arch/rv32i/src/lib.rs#L23 and here https://github.com/tock/tock/blob/master/boards/components/src/process_console.rs#L73 ?

I think this comment still applies

@ppannuto
Copy link
Member Author

Yep, I false-started on cleaning that up and finishing this the other day; will roll this over from draft to ready when it's actually ready.

@bradjc
Copy link
Contributor
bradjc commented Oct 9, 2023

Can we merge this?

@ppannuto ppannuto marked this pull request as ready for review October 9, 2023 16:58
Copy link
Contributor
@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

Just realized this was held up by my requested changes, sorry about that

@hudson-ayers hudson-ayers added this pull request to the merge queue Nov 19, 2023
Merged via the queue into master with commit a633d41 Nov 19, 2023
@hudson-ayers hudson-ayers deleted the linker-constant-cleanup branch November 19, 2023 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0