Procházet zdrojové kódy

multiboot2: rename MULTIBOOT2_BOOTLOADER_MAGIC

Philipp Schuster před 1 rokem
rodič
revize
19322699d9
2 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 3 0
      multiboot2/Changelog.md
  2. 1 1
      multiboot2/src/lib.rs

+ 3 - 0
multiboot2/Changelog.md

@@ -6,6 +6,9 @@
   name tag. However, this might also be relevant for users of custom multiboot2
   tags that use DSTs as types. See the example provided in the doc of the
   `get_tag` method.
+- renamed `MULTIBOOT2_BOOTLOADER_MAGIC` to `MAGIC`
+- added a `builder` feature and a `builder` module with a `Multiboot2InformationBuilder`
+  struct
 
 ## 0.15.1 (2023-03-18)
 - **BREAKING** `MemoryMapTag::all_memory_areas()` was renamed to `memory_areas`

+ 1 - 1
multiboot2/src/lib.rs

@@ -96,7 +96,7 @@ pub mod builder;
 /// Caution: You might need some assembly code (e.g. GAS or NASM) first, which
 /// moves `eax` to another register, like `edi`. Otherwise it probably happens,
 /// that the Rust compiler output changes `eax` before you can access it.
-pub const MULTIBOOT2_BOOTLOADER_MAGIC: u32 = 0x36d76289;
+pub const MAGIC: u32 = 0x36d76289;
 
 /// Load the multiboot boot information struct from an address.
 ///