Skip to content

Commit cf94e5b

Browse files
toku-sa-nandre-richter
authored andcommitted
fix: build error on the latest nightly
`asm!` is excluded from Prelude.
1 parent f3732b6 commit cf94e5b

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

src/aarch64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! AArch64.
66
77
use crate::QEMUExit;
8+
use core::arch::asm;
89

910
const EXIT_SUCCESS: u32 = 0;
1011
const EXIT_FAILURE: u32 = 1;

src/riscv64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! RISCV64.
66
77
use crate::QEMUExit;
8+
use core::arch::asm;
89

910
const EXIT_SUCCESS: u32 = 0x5555; // Equals `exit(0)`.
1011

src/x86.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! x86.
66
77
use crate::QEMUExit;
8+
use core::arch::asm;
89

910
const EXIT_FAILURE: u32 = 0; // since ((0 << 1) | 1) = 1.
1011

tests/aarch64_raspi3/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
//! AArch64 specific setup code.
66
7+
use core::arch::asm;
8+
79
#[no_mangle]
810
unsafe fn _start() -> ! {
911
asm!("mov sp, #0x80000");

tests/riscv64_virt/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
//! RISCV64 specific setup code.
66
7+
use core::arch::asm;
8+
79
#[no_mangle]
810
unsafe fn _start() -> ! {
911
asm!("la sp, _stack");

0 commit comments

Comments
 (0)