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 da4f8c4 + f6dbd97 commit cf5efe5Copy full SHA for cf5efe5
src/structures/idt.rs
@@ -773,8 +773,6 @@ impl EntryOptions {
773
774
/// Set the required privilege level (DPL) for invoking the handler. The DPL can be 0, 1, 2,
775
/// or 3, the default is 0. If CPL < DPL, a general protection fault occurs.
776
- ///
777
- /// This function panics for a DPL > 3.
778
#[inline]
779
pub fn set_privilege_level(&mut self, dpl: PrivilegeLevel) -> &mut Self {
780
self.0.set_bits(13..15, dpl as u16);
0 commit comments