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

RFC: Add API to suspend/restore interrupts ... #44

Closed
wants to merge 2 commits into from
Closed

RFC: Add API to suspend/restore interrupts ... #44

wants to merge 2 commits into from

Conversation

mbuesch
Copy link
Contributor

@mbuesch mbuesch commented May 21, 2022

... similar to the current without_interrupts() helper.

What do you think about this?

I renamed the existing disable/enable API to with_irqs_disabled().
The new API for suspend/restore is with_irqs_suspended().
The old without_interrupts remains as deprecated alias.

I'm not so sure about the naming. Suggestions for better naming are welcome. :)

This is completely untested. Just for discussion.

The old llvm_asm! has been removed. Therefore, it doesn't compile
on new rustc anymore.
@@ -2,35 +2,77 @@

use core::prelude::v1::*;
use core::marker::PhantomData;
use core::arch::asm;
Copy link
Member

Choose a reason for hiding this comment

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

That addition is meanwhile in place.

@@ -2,35 +2,77 @@

use core::prelude::v1::*;
use core::marker::PhantomData;
use core::arch::asm;
Copy link
Member

Choose a reason for hiding this comment

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

That addition is meanwhile in place.

@stappersg
Copy link
Member

This merge request now needs git rebase.

(Sorry for not (yet??) contributing to the requested discussion.)

1 similar comment
@stappersg
Copy link
Member

This merge request now needs git rebase.

(Sorry for not (yet??) contributing to the requested discussion.)

@mbuesch mbuesch closed this by deleting the head repository Apr 1, 2023
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.

None yet

2 participants