aboutsummaryrefslogtreecommitdiff
path: root/src/shared/task.rs
blob: 27fd0bcb82fcca053ef53852b5ea249fbb827673 (plain) (blame)
1
2
3
4
5
6
7
8
9
//! Helpers to program the task state segment.
//! See Intel 3a, Chapter 7

pub use shared::segmentation;

/// Load the task state register.
pub unsafe fn load_tr(sel: segmentation::SegmentSelector) {
    asm!("ltr $0" :: "r" (sel.bits()));
}