From 66a756f1a3b01ca70d915452e63f0a331149b5fd Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sat, 27 Mar 2004 00:35:34 +0000 Subject: [PATCH] Simplify memory access mode check. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@833 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/inthndlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 0a7f815..076907a 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -1210,7 +1210,7 @@ dispatch: break; case 0x01: - if ((lr.BL & FIT_U_MASK) > FIRST_FIT_U || /* 0xc0, 0x80 */ + if (lr.BL > LAST_FIT_U || /* 0x82 */ (lr.BL & FIT_MASK) > LAST_FIT) /* 0x3f, 0x02 */ goto error_invalid; mem_access_mode = lr.BL;