File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct EFISdt32 {
12
12
}
13
13
14
14
impl EFISdt32 {
15
- /// The Physical address of a i386 EFI system table.
15
+ /// The physical address of a i386 EFI system table.
16
16
pub fn sdt_address ( & self ) -> usize {
17
17
self . pointer as usize
18
18
}
@@ -28,7 +28,7 @@ pub struct EFISdt64 {
28
28
}
29
29
30
30
impl EFISdt64 {
31
- /// The Physical address of a x86_64 EFI system table.
31
+ /// The physical address of a x86_64 EFI system table.
32
32
pub fn sdt_address ( & self ) -> usize {
33
33
self . pointer as usize
34
34
}
@@ -43,6 +43,13 @@ pub struct EFIImageHandle32 {
43
43
pointer : u32 ,
44
44
}
45
45
46
+ impl EFIImageHandle32 {
47
+ /// The Physical address of a i386 EFI system table.
48
+ pub fn image_handle ( & self ) -> usize {
49
+ self . pointer as usize
50
+ }
51
+ }
52
+
46
53
/// Contains pointer to boot loader image handle.
47
54
#[ derive( Debug ) ]
48
55
#[ repr( C ) ]
@@ -51,3 +58,10 @@ pub struct EFIImageHandle64 {
51
58
size : u32 ,
52
59
pointer : u64 ,
53
60
}
61
+
62
+ impl EFIImageHandle64 {
63
+ /// The Physical address of a i386 EFI system table.
64
+ pub fn sdt_address ( & self ) -> usize {
65
+ self . pointer as usize
66
+ }
67
+ }
Original file line number Diff line number Diff line change @@ -9,3 +9,10 @@ pub struct ImageLoadPhysAddr {
9
9
size : u32 ,
10
10
load_base_addr : u32 ,
11
11
}
12
+
13
+ impl ImageLoadPhysAddr {
14
+ /// Returns the load base address.
15
+ pub fn load_base_addr ( & self ) -> u32 {
16
+ self . load_base_addr
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments