Closed
Description
Hi, I can't compile the template following the instructions:
- https://github.com/rust-osdev/uefi-rs/blob/master/BUILDING.md
- https://github.com/rust-osdev/uefi-rs/tree/master/template
After doing some search on Google, I found this:
It seems below minor modification can solve the problem:
diff --git a/uefi-services/src/lib.rs b/uefi-services/src/lib.rs
index c60621b..a2c066d 100644
--- a/uefi-services/src/lib.rs
+++ b/uefi-services/src/lib.rs
@@ -18,7 +18,6 @@
#![no_std]
#![feature(alloc_error_handler)]
-#![feature(asm)]
#![feature(lang_items)]
#![feature(panic_info_message)]
#![feature(abi_efiapi)]
@@ -30,6 +29,7 @@ extern crate uefi;
use core::ffi::c_void;
use core::ptr::NonNull;
+use core::arch::asm;
use cfg_if::cfg_if;
./build.py run would fail out of the same reason.
I'm just a beginner of Rust, maybe I'm wrong, thanks for your attention in advance.
Metadata
Metadata
Assignees
Labels
No labels