diff options
| author | Vaze <vaze@vaze.dev> | 2026-05-25 10:25:45 +0200 |
|---|---|---|
| committer | Vaze <vaze@vaze.dev> | 2026-05-25 10:25:45 +0200 |
| commit | 816f9b7cb300a7f3979b5f29b3677e84a3c28880 (patch) | |
| tree | 48ac4ce07f134f5877e3380507aaba1875f86256 /bootloader/src | |
| parent | 00552fcd03f86bffed8c2f6a9d110981cb869489 (diff) | |
Created a .gitignore to remove nasty build artifacts and created a Makefile.toml for cargo make to automate bootloader build process.
Diffstat (limited to 'bootloader/src')
| -rw-r--r-- | bootloader/src/main.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs index 04afe41..d26ba08 100644 --- a/bootloader/src/main.rs +++ b/bootloader/src/main.rs @@ -3,14 +3,14 @@ use core::time::Duration; use log::info; -use uefi::print; -use uefi::prelude::*; +use uefi::CString16; use uefi::Result; use uefi::Status; -use uefi::CString16; +use uefi::boot::{self, ScopedProtocol}; use uefi::fs::{FileSystem, FileSystemResult}; +use uefi::prelude::*; +use uefi::print; use uefi::proto::media::fs::SimpleFileSystem; -use uefi::boot::{self, ScopedProtocol}; extern crate alloc; use alloc::vec::Vec; @@ -37,7 +37,8 @@ fn load_kernel() -> Result { fn read_file(path: &str) -> FileSystemResult<Vec<u8>> { let path: CString16 = CString16::try_from(path).unwrap(); - let fs: ScopedProtocol<SimpleFileSystem> = boot::get_image_file_system(boot::image_handle()).unwrap(); + let fs: ScopedProtocol<SimpleFileSystem> = + boot::get_image_file_system(boot::image_handle()).unwrap(); let mut fs = FileSystem::new(fs); fs.read(path.as_ref()) } |
