From 1af5efb5c96af6f3246c8eae42912b2fbcd7f006 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 1 Sep 2024 11:21:55 +0200 Subject: Many bug fixes, and wip fixes. RoadMap: - Ring-3 switch [ Still gives GPF ] - Make timer interrupt on non SMP profile. - Work on SMP support, to offload tasks to other cores. - Validate kernel and components (compiler, dlls, programs...) Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Sources/PEFCodeManager.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dev/ZKA/Sources/PEFCodeManager.cxx') diff --git a/dev/ZKA/Sources/PEFCodeManager.cxx b/dev/ZKA/Sources/PEFCodeManager.cxx index 8dbfd029..11743373 100644 --- a/dev/ZKA/Sources/PEFCodeManager.cxx +++ b/dev/ZKA/Sources/PEFCodeManager.cxx @@ -166,6 +166,8 @@ namespace Kernel rt_copy_memory((VoidPtr)((Char*)blob + sizeof(PEFCommandHeader)), blobRet, container_header->Size); + HAL::mm_update_page(hal_read_cr3(), 0, blobRet, HAL::eFlagsPresent | HAL::eFlagsUser | (container_header->Kind != kPefCode ? HAL::eFlagsRw : 0)); + mm_delete_ke_heap(blob); return blobRet; } -- cgit v1.2.3