From 7477a0f942c374b652da4f80cdb36d4661aac3c8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 13 Oct 2024 15:29:55 +0200 Subject: IMP: Delete the memory list when exiting process. IMP: Add Allocation (and delete) of MemoryList. IMP: BitMap allocator must now allocate directories as well. IMP: Add Handover arch to check if executable is an AMD64 executable or ARM64 executable. FIX: Add ::EFI::Stop, when a thread doesn't load correctly. Signed-off-by: Amlal El Mahrouss --- dev/sci/makefile | 2 +- dev/sci/sci.json | 2 +- dev/sci/src/sci_mm.cxx | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) (limited to 'dev/sci') diff --git a/dev/sci/makefile b/dev/sci/makefile index c66d7a78..05593216 100644 --- a/dev/sci/makefile +++ b/dev/sci/makefile @@ -5,7 +5,7 @@ CC=g++ FLAGS=-I../ -shared -fPIC -D__ZKA_SYMS__ -OUTPUT=zka-sci-cxx.dll +OUTPUT=sci.dll .PHONY: build-sci build-sci: diff --git a/dev/sci/sci.json b/dev/sci/sci.json index 0bc6cdcf..e67671ce 100644 --- a/dev/sci/sci.json +++ b/dev/sci/sci.json @@ -3,7 +3,7 @@ "compiler_std": "c++20", "headers_path": ["../"], "sources_path": ["src/*.cxx"], - "output_name": "zka-sci-cxx.dll", + "output_name": "sci.dll", "compiler_flags": [ "-fPIC", "-ffreestanding", diff --git a/dev/sci/src/sci_mm.cxx b/dev/sci/src/sci_mm.cxx index 34bf4936..d7665ddd 100644 --- a/dev/sci/src/sci_mm.cxx +++ b/dev/sci/src/sci_mm.cxx @@ -9,11 +9,6 @@ /// @file sci_base.cxx /// @brief Base Memory Manager functions for SCI.dll -/// @brief Debug error prompt, when a function misbehaves. -/// @param msg -/// @return -IMPORT_C Void __RtlRaiseSoftError(const char* msg); - /// @brief Copy memory region. IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input SizeT len) { @@ -21,7 +16,6 @@ IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input Si !dest || !src) { - __RtlRaiseSoftError("Debug Error, MmCopyMemory contains one or more invalid arguments."); return nullptr; } @@ -39,7 +33,6 @@ IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt if (!len || !dest) { - __RtlRaiseSoftError("Debug Error, MmFillMemory contains one or more invalid arguments."); return nullptr; } -- cgit v1.2.3