From ccb57ef6bd6d69bfd34c0dc8fe3be8e75d4ac3cd Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 21 Dec 2021 11:00:49 +0500 Subject: [PATCH] Improve exception handler --- kernel/exception.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/exception.c b/kernel/exception.c index f3a215f..2153c6d 100644 --- a/kernel/exception.c +++ b/kernel/exception.c @@ -41,10 +41,7 @@ static const char *const messages[] = { void exception_handler(struct IsrRegisters regs) { - if ( - !(/* regs.int_no >= INT_EXCEPTION_FIRST && */ // unsigned is always >= 0 - regs.int_no <= INT_EXCEPTION_LAST) - ) { + if (regs.int_no > INT_EXCEPTION_LAST) { return; }