Update post to use multiboot2 from crates.io

This commit is contained in:
Philipp Oppermann
2016-09-27 13:46:29 +02:00
parent c6b1346956
commit 2b07d88b62

View File

@@ -44,17 +44,17 @@ Now we can add the argument to our `rust_main`:
pub extern fn rust_main(multiboot_information_address: usize) { ... } pub extern fn rust_main(multiboot_information_address: usize) { ... }
``` ```
Instead of writing an own Multiboot module, we use the [multiboot2-elf64] crate. It gives us some basic information about mapped kernel sections and available memory. I just wrote it for this blog post since I could not find any other Multiboot 2 crate. It's really ugly and incomplete, but it does its job[^fn-multiboot-crate]. Instead of writing an own Multiboot module, we use the [multiboot2] crate. It gives us some basic information about mapped kernel sections and available memory. I just wrote it for this blog post since I could not find any other Multiboot 2 crate. It's still incomplete, but it does its job.
[multiboot2-elf64]: https://github.com/phil-opp/multiboot2-elf64 [multiboot2]: https://docs.rs/multiboot2
[^fn-multiboot-crate]: All contributions are welcome! If you want to maintain it, please contact me!
So let's add a dependency on the git repository: So let's add a dependency on the git repository:
```toml ```toml
# in Cargo.toml # in Cargo.toml
[dependencies.multiboot2] [dependencies]
git = "https://github.com/phil-opp/multiboot2-elf64" ...
multiboot2 = "0.1.0"
``` ```
```rust ```rust