Skip to content

Add functions to get and clear pending events for Pm1EventRegisterBlock - #325

Open
ChocolateLoverRaj wants to merge 1 commit into
rust-osdev:mainfrom
ChocolateLoverRaj:pm1_events
Open

Add functions to get and clear pending events for Pm1EventRegisterBlock#325
ChocolateLoverRaj wants to merge 1 commit into
rust-osdev:mainfrom
ChocolateLoverRaj:pm1_events

Conversation

@ChocolateLoverRaj

Copy link
Copy Markdown

Closes #323

@ChocolateLoverRaj
ChocolateLoverRaj marked this pull request as ready for review August 27, 2026 05:55
@ChocolateLoverRaj

Copy link
Copy Markdown
Author

I tested this on QEMU q35 and on a Lenovo Z560 laptop. In my OS I was able to receive interrupts when the power button is pressed. Read the events, which contained power button, cleared the events, and then when I pressed the power button again I got another interrupt. Both machines use I/O address space and event length of 4.

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.

Feature request: Pm1EventRegisterBlock status get and clear

1 participant