Skip to content

Commit e8e0429

Browse files
liferooternicholasbishop
authored andcommitted
uefi: Remove useless padding field
Fixes #628
1 parent 1a8da74 commit e8e0429

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
on the [`ptr_meta`](https://docs.rs/ptr_meta) crate.
3434
- `pxe::DiscoverInfo` is now a DST. Create with `new_in_buffer` by supplying a
3535
`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.
3638

3739
### Removed
3840

uefi/src/table/boot.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,8 +1979,6 @@ pub const MEMORY_DESCRIPTOR_VERSION: u32 = 1;
19791979
pub struct MemoryDescriptor {
19801980
/// Type of memory occupying this range.
19811981
pub ty: MemoryType,
1982-
/// Skip 4 bytes as UEFI declares items in structs should be naturally aligned
1983-
padding: u32,
19841982
/// Starting physical address.
19851983
pub phys_start: PhysicalAddress,
19861984
/// Starting virtual address.
@@ -1995,7 +1993,6 @@ impl Default for MemoryDescriptor {
19951993
fn default() -> MemoryDescriptor {
19961994
MemoryDescriptor {
19971995
ty: MemoryType::RESERVED,
1998-
padding: 0,
19991996
phys_start: 0,
20001997
virt_start: 0,
20011998
page_count: 0,

0 commit comments

Comments
 (0)