Compare commits

...

4 Commits

Author SHA1 Message Date
Philipp Oppermann
16bbb8f972 Merge branch 'post-01' into post-02 2025-03-27 15:07:24 +01:00
Philipp Oppermann
430e2143f8 Fix: no_mangle is an unsafe attribute since Rust 2024 2025-03-27 15:06:17 +01:00
Philipp Oppermann
86ffa24e8e Update to Rust 2024 edition 2025-03-27 15:05:58 +01:00
Philipp Oppermann
c27eb1da9c Run cargo update for bootloader crate 2025-03-24 11:08:41 +01:00
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@@ -11,6 +11,6 @@ dependencies = [
[[package]] [[package]]
name = "bootloader" name = "bootloader"
version = "0.9.30" version = "0.9.31"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9c8b93781debeb5bc44a12adc4be812aa9feb659d60eeafcd7e9bedb549561" checksum = "974e79cf1b0b737839f01330fb5393095daf1124d52693696494e32523ae9ef5"

View File

@@ -2,7 +2,7 @@
name = "blog_os" name = "blog_os"
version = "0.1.0" version = "0.1.0"
authors = ["Philipp Oppermann <dev@phil-opp.com>"] authors = ["Philipp Oppermann <dev@phil-opp.com>"]
edition = "2018" edition = "2024"
[dependencies] [dependencies]
bootloader = "0.9" bootloader = "0.9"

View File

@@ -5,7 +5,7 @@ use core::panic::PanicInfo;
static HELLO: &[u8] = b"Hello World!"; static HELLO: &[u8] = b"Hello World!";
#[no_mangle] #[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! { pub extern "C" fn _start() -> ! {
let vga_buffer = 0xb8000 as *mut u8; let vga_buffer = 0xb8000 as *mut u8;