aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/mem.rs
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-02-25 05:15:35 +0100
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:13:39 +0200
commit70f9c89c64caa9f3e06c3c18a35157ce89f16162 (patch)
treea3550efb606c55266d8969bcc40fcd472387f44f /src/arch/x86_64/mem.rs
parent8f3056df6945674f558073191b8f351f98d0b44a (diff)
chore: make clippy happy
Diffstat (limited to 'src/arch/x86_64/mem.rs')
-rw-r--r--src/arch/x86_64/mem.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86_64/mem.rs b/src/arch/x86_64/mem.rs
index 52ccdec..bce0c82 100644
--- a/src/arch/x86_64/mem.rs
+++ b/src/arch/x86_64/mem.rs
@@ -1,14 +1,14 @@
// to detect available memory to initialize PMA
// https://wiki.osdev.org/Detecting_Memory_(x86)
-use core::arch::asm;
use crate::io::*;
+use core::arch::asm;
extern "C" {
fn do_e820(start: usize) -> u32;
}
// Getting an E820 Memory Map -- osdev wiki
-pub fn prob_mem_bios(){
+pub fn prob_mem_bios() {
unsafe {
let res = do_e820(0x8000);
println!("res is {}", res)