[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Wed, 29 Apr 2015 20:41:41 +0000 (20:41 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Wed, 29 Apr 2015 20:41:41 +0000 (20:41 +0000)
When a segment isn't present, the exception should always be #NP (unless
it was the stack segment, in which case the exception should be #SS).

svn path=/trunk/; revision=67479

reactos/lib/fast486/common.inl

index b7a7f57..31e80cc 100644 (file)
@@ -625,7 +625,7 @@ Fast486LoadSegmentInternal(PFAST486_STATE State,
 
             if (!GdtEntry.Present)
             {
-                Fast486ExceptionWithErrorCode(State, Exception, Selector);
+                Fast486ExceptionWithErrorCode(State, FAST486_EXCEPTION_NP, Selector);
                 return FALSE;
             }
 
@@ -679,7 +679,7 @@ Fast486LoadSegmentInternal(PFAST486_STATE State,
 
                 if (!GdtEntry.Present)
                 {
-                    Fast486ExceptionWithErrorCode(State, Exception, Selector);
+                    Fast486ExceptionWithErrorCode(State, FAST486_EXCEPTION_NP, Selector);
                     return FALSE;
                 }
             }