Skip to content

Commit feb6bfd

Browse files
committed
asm: Make assembly code a module
This makes the directory/module structure more consistent. It also avoids cluttering `main.rs`. Signed-off-by: Joe Richey <[email protected]>
1 parent e442a9b commit feb6bfd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/asm/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global_asm!(include_str!("ram64.s"));

src/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ mod serial;
3131
#[macro_use]
3232
mod common;
3333

34+
mod asm;
3435
mod block;
3536
mod bzimage;
3637
mod efi;
@@ -43,9 +44,6 @@ mod pci;
4344
mod pe;
4445
mod virtio;
4546

46-
#[cfg(not(test))]
47-
global_asm!(include_str!("asm/ram64.s"));
48-
4947
#[cfg(all(not(test), feature = "log-panic"))]
5048
#[panic_handler]
5149
fn panic(info: &PanicInfo) -> ! {

0 commit comments

Comments
 (0)