Skip to content

Commit 894d8ba

Browse files
committed
chore(lab/1): inline asm macro
1 parent 3fc2066 commit 894d8ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/0x01/pkg/boot/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![no_std]
2-
use core::arch::asm;
32

43
pub use uefi::boot::{MemoryAttribute, MemoryDescriptor, MemoryType};
54
pub use uefi::data_types::chars::*;
@@ -57,7 +56,7 @@ static mut ENTRY: usize = 0;
5756
pub fn jump_to_entry(bootinfo: *const BootInfo, stacktop: u64) -> ! {
5857
unsafe {
5958
assert!(ENTRY != 0, "ENTRY is not set");
60-
asm!("mov rsp, {}; call {}", in(reg) stacktop, in(reg) ENTRY, in("rdi") bootinfo);
59+
core::arch::asm!("mov rsp, {}; call {}", in(reg) stacktop, in(reg) ENTRY, in("rdi") bootinfo);
6160
}
6261
unreachable!()
6362
}

0 commit comments

Comments
 (0)