diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 09:05:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 09:05:36 +0100 |
| commit | b7f2a078b4284c3adc253f40bc54e733d27b6bd6 (patch) | |
| tree | 9eb5c6c0501278bcf1615ba59e7bb25a63bd4f1b /Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | |
| parent | 375fa68692447f6806264fc0339d26b691e2a1bb (diff) | |
HCoreKrnl: Start work on AHCI support. to add HCFS,EPM,GPT support to
the kernel.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp')
| -rw-r--r-- | Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp index e568aa4d..c35d52cc 100644 --- a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp +++ b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp @@ -8,43 +8,9 @@ */ #include <ArchKit/ArchKit.hpp> -#include <KernelKit/ProcessManager.hpp> #include <NewKit/String.hpp> -static const char* kExceptionMessages[32] = { - "Division by zero", - "Debug Breakpoint", - "Non-maskable Interrupt", - "Breakpoint", - "Detected Overflow", - "Out-Of-Bounds", - "Invalid Opcode", - "No Coprocessor", - "Double Fault", - "Coprocessor Segment Overrun", - "Bad TSS", - "Segment Not Found", - "Stack Error", - "General Protection Fault", - "Page Fault", - "Invalid Interrupt", - "Coprocessor Fault", - "Alignment Check", - "Machine Check", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", - "Reserved", -}; +/// BUGS = 1 /// @brief System call interrupt (like DOS and NT) #define kKernelSyscallInterrupt (0x21) @@ -53,10 +19,6 @@ EXTERN_C { HCore::Void rt_handle_interrupts(HCore::HAL::StackFramePtr stack) { HCore::kcout << "HCoreKrnl: Interrupting Hart...\r\n"; - if (stack->IntNum < 32) { - HCore::kcout << "HCoreKrnl: " << kExceptionMessages[stack->IntNum] << HCore::end_line(); - } - switch (stack->IntNum) { case kKernelSyscallInterrupt: { HCore::kcout << "HCoreKrnl: System call raised, checking.." |
