You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Contains the address corresponding to the beginning of the Multiboot2 header — the physical memory location at which the magic value is supposed to be loaded. This field serves to synchronize the mapping between OS image offsets and physical memory addresses.
15
13
header_addr:u32,
16
14
/// Contains the physical address of the beginning of the text segment. The offset in the OS image file at which to start loading is defined by the offset at which the header was found, minus (header_addr - load_addr). load_addr must be less than or equal to header_addr.
@@ -24,42 +22,63 @@ pub struct AddressHeaderTag {
24
22
}
25
23
26
24
implAddressHeaderTag{
25
+
/// Constructs a new tag.
26
+
#[must_use]
27
27
pubconstfnnew(
28
28
flags:HeaderTagFlag,
29
29
header_addr:u32,
30
30
load_addr:u32,
31
31
load_end_addr:u32,
32
32
bss_end_addr:u32,
33
33
) -> Self{
34
-
AddressHeaderTag{
35
-
typ:HeaderTagType::Address,
36
-
flags,
37
-
size:size_of::<Self>()asu32,
34
+
let header = HeaderTagHeader::new(HeaderTagType::Address, flags,size_of::<Self>()asu32);
0 commit comments