summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-27 11:58:54 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-27 11:58:54 +0100
commita33d9510bd36a9fdb98f291250a025cd4bec8bc1 (patch)
treef060a1f0624cf538c34abf700091bb7350a36af1 /Private/Source
parent9614c53b82037f77d5b57777560f8a320cb2ac4f (diff)
Kernel: working on interrupts, almost fix them.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/CxxAbi.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Private/Source/CxxAbi.cxx b/Private/Source/CxxAbi.cxx
index 41c8587b..1c004227 100644
--- a/Private/Source/CxxAbi.cxx
+++ b/Private/Source/CxxAbi.cxx
@@ -17,10 +17,15 @@ atexit_func_entry_t __atexit_funcs[DSO_MAX_OBJECTS];
uarch_t __atexit_func_count;
extern "C" void __cxa_pure_virtual() {
- HCore::kcout << "Krnl\\Abi: Placeholder method.\n";
+ HCore::kcout << "HCoreKrnl: Placeholder method.\n";
}
-extern "C" void ___chkstk_ms() {}
+extern "C" void ___chkstk_ms() {
+ while (1) {
+ asm ("cli");
+ asm ("hlt");
+ }
+}
extern "C" int atexit(void (*f)(void *), void *arg, void *dso) {
if (__atexit_func_count >= DSO_MAX_OBJECTS) return -1;