Create a interrupts::gdt submodule

This commit is contained in:
Philipp Oppermann
2017-04-18 18:25:32 +02:00
parent e1d2af5ea7
commit eea8c10a97
2 changed files with 15 additions and 0 deletions

13
src/interrupts/gdt.rs Normal file
View 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,
}
}
}