diff --git a/src/asm/mod.rs b/src/asm/mod.rs new file mode 100644 index 00000000..e1b44166 --- /dev/null +++ b/src/asm/mod.rs @@ -0,0 +1 @@ +global_asm!(include_str!("ram64.s")); diff --git a/src/main.rs b/src/main.rs index 61c343ab..a9bcb9b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,8 @@ mod serial; #[macro_use] mod common; +#[cfg(not(test))] +mod asm; mod block; mod bzimage; mod efi; @@ -43,9 +45,6 @@ mod pci; mod pe; mod virtio; -#[cfg(not(test))] -global_asm!(include_str!("asm/ram64.s")); - #[cfg(all(not(test), feature = "log-panic"))] #[panic_handler] fn panic(info: &PanicInfo) -> ! {