mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
13 lines
311 B
Rust
13 lines
311 B
Rust
use std::{
|
|
env,
|
|
process::{self, Command},
|
|
};
|
|
|
|
fn main() {
|
|
let mut qemu = Command::new("qemu-system-x86_64");
|
|
qemu.arg("-drive");
|
|
qemu.arg(format!("format=raw,file={}", env!("BIOS_IMAGE")));
|
|
let exit_status = qemu.status().unwrap();
|
|
process::exit(exit_status.code().unwrap_or(-1));
|
|
}
|