diff options
author | 2017-01-17 11:41:00 +0100 | |
---|---|---|
committer | 2017-01-17 11:41:00 +0100 | |
commit | ea25a5a4680b92c3e9e21a2ef8be3ef4b0212486 (patch) | |
tree | ecf278fd8110e95c2851ff6b5d8765c705b89372 /src/shared/task.rs | |
parent | 5fe8d4213a70415b97c6d7bb71a52171cd55db3e (diff) | |
download | rust-x86-ea25a5a4680b92c3e9e21a2ef8be3ef4b0212486.tar.gz rust-x86-ea25a5a4680b92c3e9e21a2ef8be3ef4b0212486.tar.zst rust-x86-ea25a5a4680b92c3e9e21a2ef8be3ef4b0212486.zip |
Structures are not considered immediates anymore
Diffstat (limited to 'src/shared/task.rs')
-rw-r--r-- | src/shared/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/task.rs b/src/shared/task.rs index b87c032..27fd0bc 100644 --- a/src/shared/task.rs +++ b/src/shared/task.rs @@ -5,5 +5,5 @@ pub use shared::segmentation; /// Load the task state register. pub unsafe fn load_tr(sel: segmentation::SegmentSelector) { - asm!("ltr $0" :: "r" (sel)); + asm!("ltr $0" :: "r" (sel.bits())); } |