mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user