projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Sync up to trunk head (r65298).
[reactos.git]
/
lib
/
fast486
/
extraops.c
diff --git
a/lib/fast486/extraops.c
b/lib/fast486/extraops.c
index
6a73fb8
..
1f2fc72
100644
(file)
--- a/
lib/fast486/extraops.c
+++ b/
lib/fast486/extraops.c
@@
-475,7
+475,12
@@
FAST486_OPCODE_HANDLER(Fast486ExtOpcodeLsl)
/* Calculate the limit */
Limit = GdtEntry.Limit | (GdtEntry.LimitHigh << 16);
- if (GdtEntry.Granularity) Limit <<= 12;
+
+ if (GdtEntry.Granularity)
+ {
+ Limit <<= 12;
+ Limit |= 0x00000FFF;
+ }
/* Set ZF */
State->Flags.Zf = TRUE;