Skip to content

Breaking: Improve pm1 enable registers control - #326

Open
ChocolateLoverRaj wants to merge 2 commits into
rust-osdev:mainfrom
ChocolateLoverRaj:pm1_events_breaking
Open

Breaking: Improve pm1 enable registers control #326
ChocolateLoverRaj wants to merge 2 commits 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 .

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

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.

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