mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 15:27:50 +00:00
Create a interrupts::gdt submodule
This commit is contained in:
13
src/interrupts/gdt.rs
Normal file
13
src/interrupts/gdt.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
pub struct Gdt {
|
||||
table: [u64; 8],
|
||||
next_free: usize,
|
||||
}
|
||||
|
||||
impl Gdt {
|
||||
pub fn new() -> Gdt {
|
||||
Gdt {
|
||||
table: [0; 8],
|
||||
next_free: 1,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user