diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-10 07:58:47 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-10 08:00:25 +0200 |
| commit | 80039963ff08d1810e22a0ae41497b156e861db0 (patch) | |
| tree | 32b0f12573584668e656b4869a733e31264a06ba /Kernel/Sources | |
| parent | 1c217ed09c6c4b13ec09b897270a208439f0db55 (diff) | |
[META] Important refactors and fixes.
+ FIX SCIBase.hxx header and inline scm.internal.inl header.
+ Rename targets libSCI, libDDK to sci.dll and ddk.dll.
+ Don't initialize again the values of heap and such in
HalKernelMain.cxx
+ Add 'STOP code' in ke_stop call.
+ Updated ReadMe.md.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources')
| -rw-r--r-- | Kernel/Sources/KernelCheck.cxx | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/Kernel/Sources/KernelCheck.cxx b/Kernel/Sources/KernelCheck.cxx index cff17077..b65a4114 100644 --- a/Kernel/Sources/KernelCheck.cxx +++ b/Kernel/Sources/KernelCheck.cxx @@ -19,7 +19,7 @@ #define CopyMem(dst, src, sz) Kernel::rt_copy_memory((Kernel::VoidPtr)src, (Kernel::VoidPtr)dst, sz) #define MoveMem(dst, src, sz) Kernel::rt_copy_memory((Kernel::VoidPtr)src, (Kernel::VoidPtr)dst, sz) -#define cWebsiteMacro "https://zka.ma/help" +#define cWebsiteMacro "https://zka.nl/help" #include <BootKit/Vendor/Qr.hxx> @@ -65,49 +65,51 @@ namespace Kernel start_y += 10; + // show text according to error id. + switch (id) { case RUNTIME_CHECK_PROCESS: { - cg_write_text("Process scheduler error (Catasrophic failure).", start_y, x, panicTxt); + cg_write_text("0x00000008 Process scheduler error (Catasrophic failure).", start_y, x, panicTxt); break; } case RUNTIME_CHECK_ACPI: { - cg_write_text("ACPI error.", start_y, x, panicTxt); + cg_write_text("0x00000006 ACPI error.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_POINTER: { - cg_write_text("Kernel heap error.", start_y, x, panicTxt); + cg_write_text("0x00000000 Kernel heap error.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_BAD_BEHAVIOR: { - cg_write_text("Undefined Behavior error.", start_y, x, panicTxt); + cg_write_text("0x00000009 Undefined Behavior error.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_BOOTSTRAP: { - cg_write_text("End of code.", start_y, x, panicTxt); + cg_write_text("0x0000000A End of code.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_HANDSHAKE: { - cg_write_text("Handshake error.", start_y, x, panicTxt); + cg_write_text("0x00000005 Handshake error.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_IPC: { - cg_write_text("Kernel IPC error.", start_y, x, panicTxt); + cg_write_text("0x00000003 Kernel IPC error.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_INVALID_PRIVILEGE: { - cg_write_text("Privilege violation.", start_y, x, panicTxt); + cg_write_text("0x00000007 Kernel privilege violation.", start_y, x, panicTxt); break; case RUNTIME_CHECK_UNEXCPECTED: { - cg_write_text("Catasrophic failure.", start_y, x, panicTxt); + cg_write_text("0x0000000B Catasrophic failure.", start_y, x, panicTxt); break; } case RUNTIME_CHECK_FAILED: { - cg_write_text("Assertion failed.", start_y, x, panicTxt); + cg_write_text("0x10000001 Assertion failed.", start_y, x, panicTxt); break; } default: { - cg_write_text("Unknown error.", start_y, x, panicTxt); + cg_write_text("0xFFFFFFFF Unknown error.", start_y, x, panicTxt); break; } } @@ -118,7 +120,7 @@ namespace Kernel Void RecoveryFactory::Recover() noexcept { - while (true) + while (Yes) { asm volatile("cli; hlt"); } |
