Skip to content

Update uefi crate to 0.41 - #584

Open
ICRA-SOURCE wants to merge 2 commits into
rust-osdev:mainfrom
ICRA-SOURCE:main
Open

ICRA-SOURCE wants to merge 2 commits into
rust-osdev:mainfrom
ICRA-SOURCE:main

Conversation

@ICRA-SOURCE

@ICRA-SOURCE ICRA-SOURCE commented Nov 29, 2026 •

Copy link
Copy Markdown
  • Bumped uefi to 0.41.
  • Adapted UEFI entry point, protocol handling, graphics output (GOP), file/PXE loading, and memory map descriptors to the uefi 0.41 API.
  • Split uefi/src into 7 focused modules for better readability.
  • Added an entry under # Unreleased in Changelog.md.

@ICRA-SOURCE

Copy link
Copy Markdown
Author

The ubuntu 20.04 docker build now fails because archive.ubuntu.comare unreachable. Please re-run the job, since this looks like infrastructure failure unrelated to the PR

@Freax13 Freax13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your contribution!

  • Bumped uefi to 0.41.

    • Adapted UEFI entry point, protocol handling, graphics output (GOP), file/PXE loading, and memory map descriptors to the uefi 0.41 API.

    • Split uefi/src into 7 focused modules for better readability.

    • Detached UEFI serial drivers from COM ports before initializing the bootloader logger so serial output works reliably in integration tests.

    • Added an entry under # Unreleased in Changelog.md.

Can you split this into separate commits (or at the very least move the split into 7 modules into a separate commit)? Having all of these changes in single commit makes it difficult to review them because the diff doesn't show what lines where changed and which were simply moved into a module.

Comment thread examples/basic/kernel/Cargo.toml Resolved
@ICRA-SOURCE
ICRA-SOURCE marked this pull request as ready for review November 30, 2026 09:28

@Freax13 Freax13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm very concerned about the number of drive-by-fixes (or rather drive-by-rewordings?) in this PR. Many lines of code were changed and the reason behind this is not immediately obvious to me. I pointed out a few in the comments but this list of by no means exhaustive.

Please limit your changes to the ones mentioned in the PR description and refrain from rewording unrelated code.

Detached UEFI serial drivers from COM ports before initializing the bootloader logger so serial output works reliably in integration tests.

I'll note that this PR doesn't actually change this. This was already implemented in #580. Why was the COM port change mentioned in the description for this PR?

Comment thread uefi/src/main.rs Resolved
Comment thread uefi/src/io.rs Resolved
Comment thread uefi/src/io.rs Resolved
Comment thread uefi/src/graphics.rs Resolved
Comment thread uefi/src/main.rs Resolved
@ICRA-SOURCE

Copy link
Copy Markdown
Author

Guilty as charged on the drive-by rewordings. Those were leftovers from my local fork that slipped in by mistake. I've reverted the unrelated log, comment, and constant changes, restored allocate_pages to return Option<&'static mut [u8]>, inlined boot::image_handle() into efi_main (since #[entry] no longer accepts arguments in uefi 0.41), and cleaned up the PR description

@ICRA-SOURCE
ICRA-SOURCE requested a review from Freax13 December 1, 2026 16:33
@Freax13

Freax13 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Please revert all unrelated changes.

This branch has not been deployed

No deployments
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.

2 participants