Skip to content

Commit

Permalink
Add link to the UEFI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Mar 3, 2025
1 parent 0487236 commit cd61b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use core::fmt;
// https://doc.rust-lang.org/std/io/type.RawOsError.html)
cfg_if::cfg_if!(
if #[cfg(target_os = "uefi")] {
// See the UEFI spec for more information:
// https://uefi.org/specs/UEFI/2.10/Apx_D_Status_Codes.html
type RawOsError = usize;
type NonZeroRawOsError = core::num::NonZeroUsize;
const UEFI_ERROR_FLAG: RawOsError = 1 << (RawOsError::BITS - 1);
Expand Down

0 comments on commit cd61b0b

Please sign in to comment.