Skip to content

fix: build error on the latest nightly #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//! AArch64.

use crate::QEMUExit;
use core::arch::asm;

const EXIT_SUCCESS: u32 = 0;
const EXIT_FAILURE: u32 = 1;
Expand Down
1 change: 1 addition & 0 deletions src/riscv64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//! RISCV64.

use crate::QEMUExit;
use core::arch::asm;

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

Expand Down
1 change: 1 addition & 0 deletions src/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//! x86.

use crate::QEMUExit;
use core::arch::asm;

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

Expand Down
2 changes: 2 additions & 0 deletions tests/aarch64_raspi3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

//! AArch64 specific setup code.

use core::arch::asm;

#[no_mangle]
unsafe fn _start() -> ! {
asm!("mov sp, #0x80000");
Expand Down
2 changes: 2 additions & 0 deletions tests/riscv64_virt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

//! RISCV64 specific setup code.

use core::arch::asm;

#[no_mangle]
unsafe fn _start() -> ! {
asm!("la sp, _stack");
Expand Down