فهرست منبع

multiboot2: rename MULTIBOOT2_BOOTLOADER_MAGIC

Philipp Schuster 2 سال پیش
والد
کامیت
19322699d9
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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
   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
   tags that use DSTs as types. See the example provided in the doc of the
   `get_tag` method.
   `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)
 ## 0.15.1 (2023-03-18)
 - **BREAKING** `MemoryMapTag::all_memory_areas()` was renamed to `memory_areas`
 - **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
 /// 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,
 /// moves `eax` to another register, like `edi`. Otherwise it probably happens,
 /// that the Rust compiler output changes `eax` before you can access it.
 /// 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.
 /// Load the multiboot boot information struct from an address.
 ///
 ///