aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-26 14:09:15 -0700
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-26 14:09:15 -0700
commit19843c0bcfb7a5d80720ba82524d40b3d69ace4e (patch)
tree6c43f26b93e194cae93f306be0a10f9b8c523998
parentca17286ab682cc0c89f1d7f335f90168ce0bfdf9 (diff)
downloadrust-x86-19843c0bcfb7a5d80720ba82524d40b3d69ace4e.tar.gz
rust-x86-19843c0bcfb7a5d80720ba82524d40b3d69ace4e.tar.zst
rust-x86-19843c0bcfb7a5d80720ba82524d40b3d69ace4e.zip
Fix types in 16-bit code.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
-rw-r--r--src/bits16/segmentation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bits16/segmentation.rs b/src/bits16/segmentation.rs
index 029d2e1..5dc74fc 100644
--- a/src/bits16/segmentation.rs
+++ b/src/bits16/segmentation.rs
@@ -4,8 +4,8 @@ impl GateDescriptorBuilder<u16> for DescriptorBuilder {
fn tss_descriptor(selector: SegmentSelector, offset: u16, available: bool) -> DescriptorBuilder {
let typ = match available {
- true => DescriptorType::System32(SystemDescriptorTypes32::TssAvailable32),
- false => DescriptorType::System32(SystemDescriptorTypes32::TssBusy32),
+ true => DescriptorType::System32(SystemDescriptorTypes32::TSSAvailable16),
+ false => DescriptorType::System32(SystemDescriptorTypes32::TssBusy16),
};
DescriptorBuilder::with_selector_offset(selector, offset.into()).set_type(typ)