File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 33
33
on the [ ` ptr_meta ` ] ( https://docs.rs/ptr_meta ) crate.
34
34
- ` pxe::DiscoverInfo ` is now a DST. Create with ` new_in_buffer ` by supplying a
35
35
` MaybeUninit<u8> ` slice of appropriate length.
36
+ - Redundant private field used for padding in ` MemoryDescriptor ` structure was removed. Now all
37
+ fields of this struct are public.
36
38
37
39
### Removed
38
40
Original file line number Diff line number Diff line change @@ -1979,8 +1979,6 @@ pub const MEMORY_DESCRIPTOR_VERSION: u32 = 1;
1979
1979
pub struct MemoryDescriptor {
1980
1980
/// Type of memory occupying this range.
1981
1981
pub ty : MemoryType ,
1982
- /// Skip 4 bytes as UEFI declares items in structs should be naturally aligned
1983
- padding : u32 ,
1984
1982
/// Starting physical address.
1985
1983
pub phys_start : PhysicalAddress ,
1986
1984
/// Starting virtual address.
@@ -1995,7 +1993,6 @@ impl Default for MemoryDescriptor {
1995
1993
fn default ( ) -> MemoryDescriptor {
1996
1994
MemoryDescriptor {
1997
1995
ty : MemoryType :: RESERVED ,
1998
- padding : 0 ,
1999
1996
phys_start : 0 ,
2000
1997
virt_start : 0 ,
2001
1998
page_count : 0 ,
You can’t perform that action at this time.
0 commit comments