From 0ead895f52d24dad009f738037a7795d4e3d840a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 25 Mar 2025 15:35:28 +0100 Subject: kernel: Refactor AHCI I/O path, enhance memory allocators, and cleanup obsolete script - Removed unused `build_gcc.sh` script. - Namespaced CPU feature flags under `NeOS` and transitioned from enum to unnamed enum for scoping. - Renamed `drv_std_input_output` to `drv_std_input_output_ahci` for clarity. - Improved AHCI driver documentation and added zeroing for read buffers. - Added optional `pad` parameter to memory allocators: `mm_alloc_bitmap`, `mm_new_heap`, `PageMgr::Request`, etc. - Updated bitmap allocator to correctly handle and align with padded sizes. - Added `fPad` field to memory header block. - Fixed `ATA-DMA` mode comment, corrected PRD usage and logic. - Improved code documentation and formatting in `UserProcessScheduler`, `PageMgr`, and related components. - Enhanced safety in process memory cleanup (e.g., `StackReserve` cleanup). Signed-off-by: Amlal El Mahrouss --- dev/kernel/src/Pmm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/kernel/src/Pmm.cc') diff --git a/dev/kernel/src/Pmm.cc b/dev/kernel/src/Pmm.cc index b3d5e79e..a5ba0dcd 100644 --- a/dev/kernel/src/Pmm.cc +++ b/dev/kernel/src/Pmm.cc @@ -23,7 +23,7 @@ namespace NeOS Pmm::Pmm() : fPageMgr() { - kout << "[PMM] Allocate PageMemoryMgr"; + kout << "[PMM] Allocate PageMemoryMgr.\r"; } Pmm::~Pmm() = default; @@ -35,7 +35,7 @@ namespace NeOS /***********************************************************************************/ Ref Pmm::RequestPage(Boolean user, Boolean readWrite) { - PTEWrapper pt = fPageMgr.Leak().Request(user, readWrite, false, kPageSize); + PTEWrapper pt = fPageMgr.Leak().Request(user, readWrite, false, kPageSize, 0); if (pt.fPresent) { -- cgit v1.2.3