Skip to content

config: disable interrupts by default + document interrupt behavior of init() - #69

Merged
phip1611 merged 5 commits into
rust-osdev:mainfrom
phip1611:interrupts-fixes
Aug 16, 2026
Merged

config: disable interrupts by default + document interrupt behavior of init()#69
phip1611 merged 5 commits into
rust-osdev:mainfrom
phip1611:interrupts-fixes

Conversation

@phip1611

Copy link
Copy Markdown
Member

No description provided.

@phip1611
phip1611 marked this pull request as draft August 15, 2026 19:39
@phip1611 phip1611 self-assigned this Aug 16, 2026
@phip1611
phip1611 marked this pull request as ready for review August 16, 2026 09:00
@phip1611
phip1611 force-pushed the interrupts-fixes branch 3 times, most recently from 7d48aa0 to 744ac3f Compare August 16, 2026 09:20
Experience has shown that enabling interrupts by default can lead to
surprising behavior during initialization, unless initialization is
performed with CPU interrupts disabled [0].

Let's use a safer and simpler default.

[0] rust-osdev/bootloader#565 (comment)
- prevent that the function is raising interrupts
- document interrupt behavior and recommendations
@phip1611
phip1611 force-pushed the interrupts-fixes branch 2 times, most recently from 959d1b6 to f797136 Compare August 16, 2026 10:57
In case a previous (incomplete) init sequence took place, this helps
us to cleanly init the device.
@phip1611
phip1611 added this pull request to the merge queue Aug 16, 2026
Merged via the queue into rust-osdev:main with commit 176b07b Aug 16, 2026
16 checks passed
@phip1611
phip1611 deleted the interrupts-fixes branch August 16, 2026 14:19
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.

1 participant