mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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:
parent
1528c1220d
commit
7bfc8fa8ea
1 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue