Skip to content

pxe: use PxeBaseCodeBootType newtype in PxeBaseCodeSrvlist - #2055

Open
SlieNce810 wants to merge 1 commit into
rust-osdev:mainfrom
SlieNce810:srvlist-boot-type-newtype
Open

pxe: use PxeBaseCodeBootType newtype in PxeBaseCodeSrvlist#2055
SlieNce810 wants to merge 1 commit into
rust-osdev:mainfrom
SlieNce810:srvlist-boot-type-newtype

Conversation

@SlieNce810

Copy link
Copy Markdown

Replace the bare u16 server_type with the existing PxeBaseCodeBootType
newtype enum, as the field semantically holds an EFI_PXE_BASE_CODE_BOOT_TYPE
value. This removes the TODO left by upstream commit a2bcaf6, and records the
breaking change in both changelogs.

Closes #2047

Validation

  • cargo check -p uefi-raw -p uefi passes locally on host.
  • Unit tests of the uefi crate fail to compile on my local toolchain even
    without this change (pre-existing errors in unrelated modules, e.g. TCG),
    so I could not run them locally.

Checklist

  • Descriptive git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary).

AI disclosure

This contribution was implemented and validated with AI coding assistance,
as required by CONTRIBUTING.md. I reviewed and understood every change.

About me

I'm a graduate student at Hangzhou Dianzi University, currently learning
Rust and OS internals through rCore-Tutorial. I host my code on CNB
(cnb.cool), and I keep my exercises and notes from the tutorial in a
public repo: https://cnb.cool/u/cnb.bs8OWBnfgJA

First contribution to this project — happy to adjust anything per review.

Replace the bare u16 server_type with the existing
PxeBaseCodeBootType newtype enum, as the field semantically holds an
EFI_PXE_BASE_CODE_BOOT_TYPE value. This removes the TODO left by
upstream commit a2bcaf6, and records the breaking change in both
changelogs.

AI-assisted contribution: implemented and validated with AI
coding assistance, as required by CONTRIBUTING.md.
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.

Add missing EFI_PXE_BASE_CODE_BOOT_TYPE newtype enum

1 participant