File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 8
8
` Option<Result<FramebufferTag, UnknownFramebufferType>> ` instead of
9
9
` Option<FramebufferTag> ` which prevents a possible panic. If the ` --unstable `
10
10
feature is used, ` UnknownFramebufferType ` implements ` core::error::Error ` .
11
+ - Fixed misleading documentation of the ` BootInformation::efi_memory_map_tag `
12
+ tag.
11
13
12
14
## 0.14.2 (2023-03-17)
13
15
- documentation fixes
Original file line number Diff line number Diff line change @@ -276,7 +276,10 @@ impl BootInformation {
276
276
. map ( |tag| unsafe { & * ( tag as * const Tag as * const RsdpV2Tag ) } )
277
277
}
278
278
279
- /// Search for the EFI Memory map tag.
279
+ /// Search for the EFI Memory map tag, if the boot services were exited.
280
+ /// Otherwise, if the [`TagType::EfiBs`] tag is present, this returns `None`
281
+ /// as it is strictly recommended to get the memory map from the `uefi`
282
+ /// services.
280
283
pub fn efi_memory_map_tag ( & self ) -> Option < & EFIMemoryMapTag > {
281
284
// If the EFIBootServicesNotExited is present, then we should not use
282
285
// the memory map, as it could still be in use.
You can’t perform that action at this time.
0 commit comments