@@ -12,7 +12,7 @@ use {crate::builder::boxed_dst_tag, crate::builder::traits::StructAsBytes, alloc
12
12
13
13
const METADATA_SIZE : usize = mem:: size_of :: < TagTypeId > ( ) + 3 * mem:: size_of :: < u32 > ( ) ;
14
14
15
- /// This tag provides an initial host memory map.
15
+ /// This tag provides an initial host memory map (legacy boot, not UEFI) .
16
16
///
17
17
/// The map provided is guaranteed to list all standard RAM that should be
18
18
/// available for normal use. This type however includes the regions occupied
@@ -151,20 +151,18 @@ pub enum MemoryAreaType {
151
151
Defective = 5 ,
152
152
}
153
153
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.
155
165
///
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.
168
166
/// Nowadays, much bigger chunks of continuous memory are available at higher
169
167
/// addresses, but the Multiboot standard still references those two terms.
170
168
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
@@ -204,7 +202,7 @@ impl StructAsBytes for BasicMemoryInfoTag {
204
202
205
203
const EFI_METADATA_SIZE : usize = mem:: size_of :: < TagTypeId > ( ) + 3 * mem:: size_of :: < u32 > ( ) ;
206
204
207
- /// EFI memory map as per EFI specification.
205
+ /// EFI memory map tag. The [`EFIMemoryDesc`] follows the EFI specification.
208
206
#[ derive( ptr_meta:: Pointee , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
209
207
#[ repr( C ) ]
210
208
pub struct EFIMemoryMapTag {
@@ -274,23 +272,23 @@ impl StructAsBytes for EFIMemoryDesc {
274
272
}
275
273
}
276
274
277
- /// EFI ExitBootServices was not called
275
+ /// EFI ExitBootServices was not called tag.
278
276
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
279
277
#[ repr( C ) ]
280
- pub struct EFIBootServicesNotExited {
278
+ pub struct EFIBootServicesNotExitedTag {
281
279
typ : TagTypeId ,
282
280
size : u32 ,
283
281
}
284
282
285
- impl EFIBootServicesNotExited {
283
+ impl EFIBootServicesNotExitedTag {
286
284
#[ cfg( feature = "builder" ) ]
287
285
pub fn new ( ) -> Self {
288
286
Self :: default ( )
289
287
}
290
288
}
291
289
292
290
#[ cfg( feature = "builder" ) ]
293
- impl Default for EFIBootServicesNotExited {
291
+ impl Default for EFIBootServicesNotExitedTag {
294
292
fn default ( ) -> Self {
295
293
Self {
296
294
typ : TagType :: EfiBs . into ( ) ,
@@ -300,7 +298,7 @@ impl Default for EFIBootServicesNotExited {
300
298
}
301
299
302
300
#[ cfg( feature = "builder" ) ]
303
- impl StructAsBytes for EFIBootServicesNotExited {
301
+ impl StructAsBytes for EFIBootServicesNotExitedTag {
304
302
fn byte_size ( & self ) -> usize {
305
303
mem:: size_of :: < Self > ( )
306
304
}
0 commit comments