mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Make methods of EntryOptions public
(cherry picked from commit 480265872d)
This commit is contained in:
@@ -81,22 +81,22 @@ impl EntryOptions {
|
||||
options
|
||||
}
|
||||
|
||||
fn set_present(&mut self, present: bool) -> &mut Self {
|
||||
pub fn set_present(&mut self, present: bool) -> &mut Self {
|
||||
self.0.set_bit(15, present);
|
||||
self
|
||||
}
|
||||
|
||||
fn disable_interrupts(&mut self, disable: bool) -> &mut Self {
|
||||
pub fn disable_interrupts(&mut self, disable: bool) -> &mut Self {
|
||||
self.0.set_bit(8, !disable);
|
||||
self
|
||||
}
|
||||
|
||||
fn set_privilege_level(&mut self, dpl: u16) -> &mut Self {
|
||||
pub fn set_privilege_level(&mut self, dpl: u16) -> &mut Self {
|
||||
self.0.set_range(13..15, dpl);
|
||||
self
|
||||
}
|
||||
|
||||
fn set_stack_index(&mut self, index: u16) -> &mut Self {
|
||||
pub fn set_stack_index(&mut self, index: u16) -> &mut Self {
|
||||
self.0.set_range(0..3, index);
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user