[NTOSKRNL]

Fix msvc versions of Ke386GetGlobalDescriptorTable and Ke386SetGlobalDescriptorTable. Patch by Jose Catena.

See issue #5071 for more details.

svn path=/trunk/; revision=46797
This commit is contained in:
Timo Kreuzer 2010-04-09 21:10:13 +00:00
parent 1528c1220d
commit 7bfc8fa8ea

View file

@ -136,17 +136,27 @@ Ke386FnInit(VOID)
FORCEINLINE
VOID
Ke386GetGlobalDescriptorTable(OUT PVOID Descriptor)
__sgdt(OUT PVOID Descriptor)
{
__asm sgdt [Descriptor];
__asm
{
mov eax, Descriptor
sgdt [eax]
}
}
#define Ke386GetGlobalDescriptorTable __sgdt
FORCEINLINE
VOID
Ke386SetGlobalDescriptorTable(IN PVOID Descriptor)
__lgdt(IN PVOID Descriptor)
{
__asm lgdt [Descriptor];
__asm
{
mov eax, Descriptor
lgdt [eax]
}
}
#define Ke386SetGlobalDescriptorTable __lgdt
FORCEINLINE
USHORT