Skip to content

Breaking: Improve pm1 enable registers control - #326

Merged
martin-hughes merged 1 commit into
rust-osdev:mainfrom
ChocolateLoverRaj:pm1_events_breaking
Sep 23, 2026
Merged

martin-hughes merged 1 commit into
rust-osdev:mainfrom
ChocolateLoverRaj:pm1_events_breaking

Conversation

@ChocolateLoverRaj

@ChocolateLoverRaj ChocolateLoverRaj commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Basically an extension of #325 , but does some breaking changes. Fixes #327 .

@martin-hughes

Copy link
Copy Markdown
Contributor

Too me, this looks like a sensible extension of #325 - I (or Isaac) will give it a better look once #325 lands.

Since the two PRs cover a lot of the same ground, I wondered: have you seen the Stacked PRs feature that released recently? Don't feel like you have to use it, but also feel free to if you do like it.

@ChocolateLoverRaj

Copy link
Copy Markdown
Contributor Author

I didn't know about stacked PRs until now. I will probably wait until the web UI has stacked PR creation since it seems to be gh CLI only rn.

@martin-hughes

Copy link
Copy Markdown
Contributor

@ChocolateLoverRaj this still looks good to me, please would you rebase onto the updated main and then I'll merge?

Now set/clear all event flags in one write. This means no read is
necessary and also eliminates that cause of race conditions.
@martin-hughes
martin-hughes merged commit 4a76a9a into rust-osdev:main Sep 23, 2026
6 checks passed
@martin-hughes

Copy link
Copy Markdown
Contributor

Nice one, thanks again!

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.

Pm1EventRegisterBlock::set_event_enabled race condition?

2 participants