move memory related source to memory dir

This commit is contained in:
Masato Imai
2025-07-03 13:15:10 +00:00
parent 8bdc838461
commit 2c884f407f
5 changed files with 6 additions and 2 deletions

View File

@@ -8,9 +8,11 @@ EFI_BINARY="$1"
qemu-system-x86_64 -enable-kvm \ qemu-system-x86_64 -enable-kvm \
-m 4G \ -m 4G \
-serial mon:stdio \ -serial mon:stdio \
-nographic \
-no-reboot \ -no-reboot \
-drive if=pflash,format=raw,readonly=on,file=OVMF_CODE.fd \ -drive if=pflash,format=raw,readonly=on,file=OVMF_CODE.fd \
-drive if=pflash,format=raw,readonly=on,file=OVMF_VARS.fd \ -drive if=pflash,format=raw,readonly=on,file=OVMF_VARS.fd \
-cdrom nel_os.iso \ -cdrom nel_os.iso \
-boot d \ -boot d \
-cpu host \
-s -s

View File

@@ -9,7 +9,6 @@ pub mod cpuid;
pub mod graphics; pub mod graphics;
pub mod logging; pub mod logging;
pub mod memory; pub mod memory;
pub mod paging;
pub mod serial; pub mod serial;
use alloc::vec; use alloc::vec;
@@ -23,7 +22,8 @@ use x86_64::{registers::control::Cr3, structures::paging::OffsetPageTable, VirtA
use crate::{ use crate::{
constant::{BANNER, KERNEL_STACK_SIZE, PKG_VERSION}, constant::{BANNER, KERNEL_STACK_SIZE, PKG_VERSION},
graphics::{FrameBuffer, FRAME_BUFFER}, graphics::{FrameBuffer, FRAME_BUFFER},
memory::BitmapMemoryTable, memory::memory::BitmapMemoryTable,
memory::paging,
}; };
#[repr(C, align(16))] #[repr(C, align(16))]

View File

@@ -0,0 +1,2 @@
pub mod memory;
pub mod paging;