We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8922d8d + 3959a0b commit 3cae23eCopy full SHA for 3cae23e
src/registers/segmentation.rs
@@ -77,6 +77,10 @@ impl SegmentSelector {
77
SegmentSelector(index << 3 | (rpl as u16))
78
}
79
80
+ /// Can be used as a selector into a non-existent segment and assigned to segment registers,
81
+ /// e.g. data segment register in ring 0
82
+ pub const NULL: Self = Self::new(0, PrivilegeLevel::Ring0);
83
+
84
/// Returns the GDT index.
85
#[inline]
86
pub fn index(self) -> u16 {
0 commit comments