From 5aad7d315460af0b4c4a9c5b355dff9654b39627 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 25 Jul 2023 18:23:33 +0200 Subject: [PATCH] kernel/x86_64: Fail on invalid interrupts instead of calling FIXME_UNHANDLED_INTERRUPT A FIXME is something that should be changed later, this is a check for something that should never happen. --- kernel/src/arch/x86_64/CPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/x86_64/CPU.cpp b/kernel/src/arch/x86_64/CPU.cpp index c1dd3e8d..b306459b 100644 --- a/kernel/src/arch/x86_64/CPU.cpp +++ b/kernel/src/arch/x86_64/CPU.cpp @@ -134,7 +134,7 @@ extern "C" void handle_x86_exception(Registers* regs) case 19: FIXME_UNHANDLED_INTERRUPT("SIMD floating-point exception"); case 20: FIXME_UNHANDLED_INTERRUPT("Virtualization exception"); case 21: FIXME_UNHANDLED_INTERRUPT("Control-protection exception"); - default: FIXME_UNHANDLED_INTERRUPT("Reserved exception or #DF/#MC, which shouldn't call handle_x86_exception"); + default: fail("Caught invalid reserved exception or #DF/#MC, which shouldn't call handle_x86_exception"); } }