diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-12-25 14:04:14 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-12-25 14:04:14 +0100 |
| commit | 4ed658c633ce5d7c5bde4acdbe322e5f51592369 (patch) | |
| tree | 2eaf1d46946bf86123f1561338c81aaff8956662 /dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc | |
| parent | 02fd0b59edbcb2b5c08ab1f36bbffc12ba08a5d3 (diff) | |
IMPL: Important refactors and improvements of ZkaOS.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc')
| -rw-r--r-- | dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc b/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc index 036593e5..aa1d66d7 100644 --- a/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc +++ b/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc @@ -18,7 +18,7 @@ EXTERN_C void idt_handle_gpf(Kernel::UIntPtr rsp) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); process.Leak().ProcessSignal.SignalIP = 0UL; process.Leak().ProcessSignal.SignalID = SIGKILL; @@ -30,7 +30,7 @@ EXTERN_C void idt_handle_gpf(Kernel::UIntPtr rsp) process.Leak().Crash(); - Kernel::ke_stop(RUNTIME_CHECK_POINTER); + Kernel::ke_panic(RUNTIME_CHECK_POINTER); } /// @brief Handle page fault. @@ -43,7 +43,7 @@ EXTERN_C void idt_handle_pf(Kernel::UIntPtr rsp) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); process.Leak().ProcessSignal.SignalIP = 0UL; process.Leak().ProcessSignal.SignalID = SIGKILL; @@ -55,7 +55,7 @@ EXTERN_C void idt_handle_pf(Kernel::UIntPtr rsp) process.Leak().Crash(); - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); } /// @brief Handle scheduler interrupt. @@ -90,7 +90,7 @@ EXTERN_C void idt_handle_math(Kernel::UIntPtr rsp) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); process.Leak().ProcessSignal.SignalIP = 0UL; process.Leak().ProcessSignal.SignalID = SIGKILL; @@ -102,7 +102,7 @@ EXTERN_C void idt_handle_math(Kernel::UIntPtr rsp) process.Leak().Crash(); - Kernel::ke_stop(RUNTIME_CHECK_UNEXCPECTED); + Kernel::ke_panic(RUNTIME_CHECK_UNEXCPECTED); } /// @brief Handle any generic fault. @@ -114,7 +114,7 @@ EXTERN_C void idt_handle_generic(Kernel::UIntPtr rsp) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); process.Leak().ProcessSignal.SignalIP = 0UL; process.Leak().ProcessSignal.SignalID = SIGKILL; @@ -126,7 +126,7 @@ EXTERN_C void idt_handle_generic(Kernel::UIntPtr rsp) process.Leak().Crash(); - Kernel::ke_stop(RUNTIME_CHECK_UNEXCPECTED); + Kernel::ke_panic(RUNTIME_CHECK_UNEXCPECTED); } EXTERN_C Kernel::Void idt_handle_breakpoint(Kernel::UIntPtr rip) @@ -134,7 +134,7 @@ EXTERN_C Kernel::Void idt_handle_breakpoint(Kernel::UIntPtr rip) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); kcout << "Kernel: Process RIP: " << Kernel::hex_number(rip) << endl; kcout << "Kernel: SIGTRAP set.\r"; @@ -158,7 +158,7 @@ EXTERN_C void idt_handle_ud(Kernel::UIntPtr rsp) auto process = Kernel::UserProcessScheduler::The().GetCurrentProcess(); if (!process) - Kernel::ke_stop(RUNTIME_CHECK_PAGE); + Kernel::ke_panic(RUNTIME_CHECK_PAGE); process.Leak().ProcessSignal.SignalIP = 0UL; process.Leak().ProcessSignal.SignalID = SIGKILL; @@ -170,7 +170,7 @@ EXTERN_C void idt_handle_ud(Kernel::UIntPtr rsp) process.Leak().Crash(); - Kernel::ke_stop(RUNTIME_CHECK_UNEXCPECTED); + Kernel::ke_panic(RUNTIME_CHECK_UNEXCPECTED); } /// @brief Enter syscall from assembly. |
