We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0311ff commit f6eee65Copy full SHA for f6eee65
uefi-services/src/lib.rs
@@ -27,7 +27,6 @@ extern crate log;
27
// Core types.
28
extern crate uefi;
29
30
-use core::arch::asm;
31
use core::ffi::c_void;
32
use core::ptr::NonNull;
33
@@ -187,14 +186,14 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
187
186
loop {
188
unsafe {
189
// Try to at least keep CPU from running at 100%
190
- asm!("hlt", options(nomem, nostack));
+ core::arch::asm!("hlt", options(nomem, nostack));
191
}
192
193
} else if #[cfg(target_arch = "aarch64")] {
194
195
196
197
- asm!("hlt 420", options(nomem, nostack));
+ core::arch::asm!("hlt 420", options(nomem, nostack));
198
199
200
} else {
0 commit comments