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:
parent
f6ecb951fd
commit
ccb57ef6bd
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue