Author: aandrejevic
Date: Thu May 7 12:18:41 2015
New Revision: 67592
URL:
http://svn.reactos.org/svn/reactos?rev=67592&view=rev
Log:
[FAST486]
The NULL selector is valid in the LDT.
Modified:
trunk/reactos/lib/fast486/common.inl
Modified: trunk/reactos/lib/fast486/common.inl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/common.inl?rev…
==============================================================================
--- trunk/reactos/lib/fast486/common.inl [iso-8859-1] (original)
+++ trunk/reactos/lib/fast486/common.inl [iso-8859-1] Thu May 7 12:18:41 2015
@@ -573,7 +573,7 @@
{
/* Loading the stack segment */
- if (GET_SEGMENT_INDEX(Selector) == 0)
+ if (!(Selector & SEGMENT_TABLE_INDICATOR) &&
GET_SEGMENT_INDEX(Selector) == 0)
{
Fast486Exception(State, Exception);
return FALSE;
@@ -614,7 +614,7 @@
State->PrefetchValid = FALSE;
#endif
- if (GET_SEGMENT_INDEX(Selector) == 0)
+ if (!(Selector & SEGMENT_TABLE_INDICATOR) &&
GET_SEGMENT_INDEX(Selector) == 0)
{
Fast486Exception(State, Exception);
return FALSE;
@@ -665,7 +665,7 @@
{
/* Loading a data segment */
- if (GET_SEGMENT_INDEX(Selector) != 0)
+ if (GET_SEGMENT_INDEX(Selector) != 0 || (Selector &
SEGMENT_TABLE_INDICATOR))
{
if (!GdtEntry.SystemType)
{