1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Improve exception handler

This commit is contained in:
Alex Kotov 2021-12-21 11:00:49 +05:00
parent f6ecb951fd
commit ccb57ef6bd
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -41,10 +41,7 @@ static const char *const messages[] = {
void exception_handler(struct IsrRegisters regs) void exception_handler(struct IsrRegisters regs)
{ {
if ( if (regs.int_no > INT_EXCEPTION_LAST) {
!(/* regs.int_no >= INT_EXCEPTION_FIRST && */ // unsigned is always >= 0
regs.int_no <= INT_EXCEPTION_LAST)
) {
return; return;
} }