Skip to content

Fix Clippy git ref again #279

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 2 commits into from
Oct 27, 2020
Merged

Fix Clippy git ref again #279

merged 2 commits into from
Oct 27, 2020

Conversation

jonas-schievink
Copy link
Contributor

No description provided.

@rust-highfive
Copy link

r? @therealprof

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m labels Oct 26, 2020
therealprof
therealprof previously approved these changes Oct 26, 2020
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM

bors r+

bors bot added a commit that referenced this pull request Oct 26, 2020
279: Gate Bors on Clippy r=therealprof a=jonas-schievink



Co-authored-by: Jonas Schievink <[email protected]>
@jonas-schievink
Copy link
Contributor Author

bors r-

@bors
Copy link
Contributor

bors bot commented Oct 26, 2020

Canceled.

@jonas-schievink jonas-schievink changed the title Gate Bors on Clippy Fix Clippy git ref again Oct 26, 2020
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 27, 2020

👎 Rejected by too few approved reviews

@adamgreig
Copy link
Member

😕

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 27, 2020

Build succeeded:

@bors bors bot merged commit 8b11042 into rust-embedded:master Oct 27, 2020
@jonas-schievink jonas-schievink deleted the as-usual branch October 27, 2020 00:13
adamgreig pushed a commit that referenced this pull request Jan 12, 2022
279: Add barriers after FPU enabling r=adamgreig a=thalesfragoso

This only seems to be required for M7 cores, but since we can't know the specific core, we can't filter on that.

I thought about using the SCB's `RegisterBlock` from cortex-m to enable the FPU, but the [registers](https://docs.rs/cortex-m/0.6.2/cortex_m/peripheral/scb/struct.RegisterBlock.html) are just the generics `RW` which isn't that different from what we're doing right now, and we would need `Peripherals::steal` to use the methods from SCB which would set the `CORE_PERIPHERALS`/`TAKEN` flag.

And one question, with this change, can we get rid of the `trampoline()` function? I don't think the compiler will do reordering across foreign functions calls (dsb/isb), but I might be missing something.

Co-authored-by: Thales Fragoso <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants