@@ -12,7 +12,7 @@ use {crate::builder::boxed_dst_tag, crate::builder::traits::StructAsBytes, alloc
1212
1313const METADATA_SIZE : usize = mem:: size_of :: < TagTypeId > ( ) + 3 * mem:: size_of :: < u32 > ( ) ;
1414
15- /// This tag provides an initial host memory map.
15+ /// This tag provides an initial host memory map (legacy boot, not UEFI) .
1616///
1717/// The map provided is guaranteed to list all standard RAM that should be
1818/// available for normal use. This type however includes the regions occupied
@@ -151,20 +151,18 @@ pub enum MemoryAreaType {
151151 Defective = 5 ,
152152}
153153
154- /// Basic memory info
154+ /// Basic memory info tag.
155+ ///
156+ /// This tag includes "basic memory information". This means (legacy) lower and
157+ /// upper memory: In Real Mode (modeled after the 8086), only the first 1MB of
158+ /// memory is accessible. Typically, the region between 640KB and 1MB is not
159+ /// freely usable, because it is used for memory-mapped IO, for instance. The
160+ /// term “lower memory” refers to those first 640KB of memory that are freely
161+ /// usable for an application in Real Mode. “Upper memory” then refers to the
162+ /// next freely usable chunk of memory, starting at 1MB up to about 10MB, in
163+ /// practice. This is the memory an application running on a 286 (which had a
164+ /// 24-bit address bus) could use, historically.
155165///
156- /// This tag includes "basic memory information".
157- /// This means (legacy) lower and upper memory:
158- /// In Real Mode (modeled after the 8086),
159- /// only the first 1MB of memory is accessible.
160- /// Typically, the region between 640KB and 1MB is not freely usable,
161- /// because it is used for memory-mapped IO, for instance.
162- /// The term “lower memory” refers to those first 640KB of memory that are
163- /// freely usable for an application in Real Mode.
164- /// “Upper memory” then refers to the next freely usable chunk of memory,
165- /// starting at 1MB up to about 10MB, in practice.
166- /// This is the memory an application running on a 286
167- /// (which had a 24-bit address bus) could use, historically.
168166/// Nowadays, much bigger chunks of continuous memory are available at higher
169167/// addresses, but the Multiboot standard still references those two terms.
170168#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
@@ -204,7 +202,7 @@ impl StructAsBytes for BasicMemoryInfoTag {
204202
205203const EFI_METADATA_SIZE : usize = mem:: size_of :: < TagTypeId > ( ) + 3 * mem:: size_of :: < u32 > ( ) ;
206204
207- /// EFI memory map as per EFI specification.
205+ /// EFI memory map tag. The [`EFIMemoryDesc`] follows the EFI specification.
208206#[ derive( ptr_meta:: Pointee , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
209207#[ repr( C ) ]
210208pub struct EFIMemoryMapTag {
@@ -274,23 +272,23 @@ impl StructAsBytes for EFIMemoryDesc {
274272 }
275273}
276274
277- /// EFI ExitBootServices was not called
275+ /// EFI ExitBootServices was not called tag.
278276#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
279277#[ repr( C ) ]
280- pub struct EFIBootServicesNotExited {
278+ pub struct EFIBootServicesNotExitedTag {
281279 typ : TagTypeId ,
282280 size : u32 ,
283281}
284282
285- impl EFIBootServicesNotExited {
283+ impl EFIBootServicesNotExitedTag {
286284 #[ cfg( feature = "builder" ) ]
287285 pub fn new ( ) -> Self {
288286 Self :: default ( )
289287 }
290288}
291289
292290#[ cfg( feature = "builder" ) ]
293- impl Default for EFIBootServicesNotExited {
291+ impl Default for EFIBootServicesNotExitedTag {
294292 fn default ( ) -> Self {
295293 Self {
296294 typ : TagType :: EfiBs . into ( ) ,
@@ -300,7 +298,7 @@ impl Default for EFIBootServicesNotExited {
300298}
301299
302300#[ cfg( feature = "builder" ) ]
303- impl StructAsBytes for EFIBootServicesNotExited {
301+ impl StructAsBytes for EFIBootServicesNotExitedTag {
304302 fn byte_size ( & self ) -> usize {
305303 mem:: size_of :: < Self > ( )
306304 }
0 commit comments