move gdt module in memory

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-10 18:45:25 +01:00
1 parent c85e7b5e5a
commit 745b8efb8f
4 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
use crate::gdt;
use crate::memory::gdt;
use crate::hlt_loop;
use crate::drivers::vga::{self, Color, ColorCode};
use crate::{println};
+1 -2
View File
@@ -3,7 +3,6 @@
#![feature(abi_x86_interrupt)]
#![feature(alloc_error_handler)]
mod gdt;
mod interrupts;
mod memory;
mod drivers;
@@ -41,7 +40,7 @@ pub fn init(boot_info: &BootInformation)
vga::change_color(ColorCode::new(Color::LightCyan, Color::Black));
println!("Starting init");
memory::init(boot_info);
gdt::init_gdt();
memory::gdt::init_gdt();
interrupts::init_idt();
vga::change_color(ColorCode::new(Color::LightGreen, Color::Black));
}
View File
File renamed without changes.
+1
View File
@@ -10,6 +10,7 @@ use x86_64::structures::paging::{mapper::MapToError, page::PageRangeInclusive};
pub mod frame_allocator;
pub mod paging;
pub mod heap_alloc;
pub mod gdt;
pub const PAGE_SIZE: usize = 4096;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.