aboutsummaryrefslogtreecommitdiff
path: root/src/task.rs
diff options
context:
space:
mode:
authorGravatar Dan Cross <cross@gajendra.net> 2021-12-22 17:54:39 +0000
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2021-12-26 09:31:14 -0800
commit161ef95308f6faf4b47a1425054e0104a0348cbc (patch)
tree350e14fa801c39b74e905a25ea198440d39e40fc /src/task.rs
parentb0dcf8dd08b0a817510d2f55e8bc25edcc4f8809 (diff)
downloadrust-x86-161ef95308f6faf4b47a1425054e0104a0348cbc.tar.gz
rust-x86-161ef95308f6faf4b47a1425054e0104a0348cbc.tar.zst
rust-x86-161ef95308f6faf4b47a1425054e0104a0348cbc.zip
Add explicit `use` statements core::arch::asm.
The new asm!() syntx has been stabilized in nightly Rust, but requires either a `use` statement or explicit package qualification. This PR adds `use` statements in the modules that use the new macro. Fixes #117. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/task.rs')
-rw-r--r--src/task.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/task.rs b/src/task.rs
index d819e2d..d572c8d 100644
--- a/src/task.rs
+++ b/src/task.rs
@@ -1,6 +1,7 @@
//! Helpers to program the task state segment.
//! See Intel 3a, Chapter 7
+use core::arch::asm;
pub use crate::segmentation;
/// Returns the current value of the task register.