Use asm from core::arch

asm was stabilized in Rust 1.59.0. It is now in `core::arch` and not in
the prelude.

Fixes compiling using the 2022-03-18 toolchain.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2022-04-01 12:53:53 -06:00
committed by Jeremy Soller
parent ba7f32e1fe
commit b78471989a
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
use core::arch::asm;
#[inline(always)]
pub unsafe fn inb(port: u16) -> u8 {
let value: u8;

View File

@@ -1,5 +1,4 @@
#![no_std]
#![feature(asm)]
#[macro_use]
extern crate alloc;