diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-19 10:14:36 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-19 10:14:36 +0200 |
| commit | 933d1ef6721903895b15c45917a0fc705763fbf5 (patch) | |
| tree | 1aed4505be011528b6a9799bcd29bbc846eefb4a /dev/CRT | |
| parent | da70596895d8135e08f8caac6978117697b4c021 (diff) | |
[IMP]
+ Fixed big parts of the user manager's code.
+ Fixed New FS kernel support.
+ Allocate 2GB of RAM for kernel.
- Reported bug to Jira regarding UserManager's TryLogin method.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/CRT')
| -rw-r--r-- | dev/CRT/Sources/__ndk_runtime.cxx (renamed from dev/CRT/__ndk_runtime.cxx) | 2 | ||||
| -rw-r--r-- | dev/CRT/__ndk_new_delete.hxx | 33 | ||||
| -rw-r--r-- | dev/CRT/build.json | 30 |
3 files changed, 21 insertions, 44 deletions
diff --git a/dev/CRT/__ndk_runtime.cxx b/dev/CRT/Sources/__ndk_runtime.cxx index fc63b12d..f9a4abc6 100644 --- a/dev/CRT/__ndk_runtime.cxx +++ b/dev/CRT/Sources/__ndk_runtime.cxx @@ -7,6 +7,6 @@ #include <CRT/__ndk_alloca.hxx>
#include <CRT/__ndk_defines.hxx>
#include <CRT/__ndk_exception.hxx>
-#include <CRTKIt/__ndk_new_delete.hxx>
+#include <CRT/__ndk_new_delete.hxx>
/// @note No sources needed for now.
diff --git a/dev/CRT/__ndk_new_delete.hxx b/dev/CRT/__ndk_new_delete.hxx index 464ea334..79b5c805 100644 --- a/dev/CRT/__ndk_new_delete.hxx +++ b/dev/CRT/__ndk_new_delete.hxx @@ -7,7 +7,6 @@ #pragma once #include <CRT/__ndk_defines.hxx> -#include <SCIKit/SCIBase.hxx> namespace stdx { @@ -27,35 +26,3 @@ namespace stdx delete ptr; } } // namespace stdx - -void* operator new(size_type len) -{ - if (!len) - ++len; - - return RtlCreateHeap(len, 0); -} - -void operator delete(void* ptr) -{ - if (!ptr) - return; - - RtlDestroyHeap(ptr); -} - -void* operator new[](size_type len) -{ - if (!len) - ++len; - - return RtlCreateHeap(len, 0); -} - -void operator delete[](void* ptr) -{ - if (!ptr) - return; - - RtlDestroyHeap(ptr); -} diff --git a/dev/CRT/build.json b/dev/CRT/build.json index 2d4c0c1e..d91b6131 100644 --- a/dev/CRT/build.json +++ b/dev/CRT/build.json @@ -1,10 +1,20 @@ -{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": ["../", "./"],
- "sources_path": ["*.cxx"],
- "output_name": "ndkcrt.dll",
- "compiler_flags": ["-ffreestanding", "-shared", "-fno-rtti", "-fno-exceptions", " -Wl,--subsystem=17"],
- "cpp_macros": ["__CRT_AMD64__", "cCRTVersion=0x0100", "cEFSVersionHighest=0x0100", "cEFSVersionLowest=0x0100"]
- }
-
\ No newline at end of file +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../", "./"], + "sources_path": ["Sources/*.cxx"], + "output_name": "ndkcrt.dll", + "compiler_flags": [ + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + " -Wl,--subsystem=17" + ], + "cpp_macros": [ + "__CRT_AMD64__", + "cCRTVersion=0x0100", + "cEFSVersionHighest=0x0100", + "cEFSVersionLowest=0x0100" + ] +} |
