summaryrefslogtreecommitdiffhomepage
path: root/Kernel
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-10 08:06:00 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-10 08:06:00 +0200
commit3529ed921748f953a19c872c8dc56c6813c995a6 (patch)
tree95b8593aa5fb133f7e95497bb6f08c62f85f945d /Kernel
parent84b0e780dfd9272b177c32cc3bb99f37bb88304d (diff)
MHR-23: Improvements over C++ runtime support.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/CRT/__mpcc_exception.hxx7
-rw-r--r--Kernel/makefile1
2 files changed, 7 insertions, 1 deletions
diff --git a/Kernel/CRT/__mpcc_exception.hxx b/Kernel/CRT/__mpcc_exception.hxx
index 08af0762..a54c2354 100644
--- a/Kernel/CRT/__mpcc_exception.hxx
+++ b/Kernel/CRT/__mpcc_exception.hxx
@@ -36,4 +36,11 @@ namespace std
__throw_general();
CANT_REACH(); // prevent from continuing.
}
+
+ inline void __throw_bad_array_new_length(void)
+ {
+ NewOS::kcout << "MPCC C++: Bad array length.\r";
+ __throw_general();
+ CANT_REACH(); // prevent from continuing.
+ }
} // namespace std
diff --git a/Kernel/makefile b/Kernel/makefile
index 74365a60..24c823b4 100644
--- a/Kernel/makefile
+++ b/Kernel/makefile
@@ -55,7 +55,6 @@ newos-amd64-epm: clean
$(wildcard HALKit/AMD64/PCI/*.cxx) $(wildcard Source/Network/*.cxx) $(wildcard Source/Storage/*.cxx) \
$(wildcard HALKit/AMD64/*.cxx) $(wildcard HALKit/AMD64/*.cpp) \
$(wildcard HALKit/AMD64/*.s)
-
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalInterruptAPI.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalSMPCoreManager.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalNewBoot.asm