aboutsummaryrefslogtreecommitdiff
path: root/src/task.rs
blob: 20890c987a70e3e655fe6a8896c8fd990967c5eb (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 segmentation;

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