Skip to content

Commit

Permalink
asm: Make assembly code a module
Browse files Browse the repository at this point in the history
This makes the directory/module structure more consistent.
It also avoids cluttering `main.rs`.
  • Loading branch information
josephlr committed Feb 29, 2020
1 parent 1c54703 commit 25c5645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/asm/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global_asm!(include_str!("ram64.s"));
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mod serial;
#[macro_use]
mod common;

mod asm;
mod block;
mod bzimage;
mod efi;
Expand All @@ -43,9 +44,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) -> ! {
Expand Down

0 comments on commit 25c5645

Please sign in to comment.