Author: ion
Date: Fri Mar 2 19:28:34 2007
New Revision: 25948
URL:
http://svn.reactos.org/svn/reactos?rev=25948&view=rev
Log:
- More MSVC fixes.
Modified:
trunk/reactos/ntoskrnl/include/internal/i386/intrin_i.h
trunk/reactos/ntoskrnl/ke/i386/cpu.c
Modified: trunk/reactos/ntoskrnl/include/internal/i386/intrin_i.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/i386/intrin_i.h (original)
+++ trunk/reactos/ntoskrnl/include/internal/i386/intrin_i.h Fri Mar 2 19:28:34 2007
@@ -168,28 +168,28 @@
VOID
FORCEINLINE
-Ke386GetInterruptDescriptorTable(OUT USHORT Descriptor)
+Ke386GetInterruptDescriptorTable(OUT KDESCRIPTOR Descriptor)
{
__asm sidt Descriptor;
}
VOID
FORCEINLINE
-Ke386SetInterruptDescriptorTable(IN USHORT Descriptor)
+Ke386SetInterruptDescriptorTable(IN KDESCRIPTOR Descriptor)
{
__asm lidt Descriptor;
}
VOID
FORCEINLINE
-Ke386GetGlobalDescriptorTable(OUT USHORT Descriptor)
+Ke386GetGlobalDescriptorTable(OUT KDESCRIPTOR Descriptor)
{
__asm sgdt Descriptor;
}
VOID
FORCEINLINE
-Ke386SetGlobalDescriptorTable(IN USHORT Descriptor)
+Ke386SetGlobalDescriptorTable(IN KDESCRIPTOR Descriptor)
{
__asm lgdt Descriptor;
}
Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c Fri Mar 2 19:28:34 2007
@@ -697,8 +697,8 @@
//
// Restore GDT, IDT, LDT and TSS
//
- Ke386SetGlobalDescriptorTable(ProcessorState->SpecialRegisters.Gdtr.Base);
- Ke386SetInterruptDescriptorTable(ProcessorState->SpecialRegisters.Idtr.Base);
+ Ke386SetGlobalDescriptorTable(ProcessorState->SpecialRegisters.Gdtr);
+ Ke386SetInterruptDescriptorTable(ProcessorState->SpecialRegisters.Idtr);
Ke386SetTr(ProcessorState->SpecialRegisters.Tr);
Ke386SetLocalDescriptorTable(ProcessorState->SpecialRegisters.Ldtr);
}
@@ -724,8 +724,8 @@
Ke386SetDr7(0);
/* Save GDT, IDT, LDT and TSS */
- Ke386GetGlobalDescriptorTable(ProcessorState->SpecialRegisters.Gdtr.Base);
- Ke386GetInterruptDescriptorTable(ProcessorState->SpecialRegisters.Idtr.Base);
+ Ke386GetGlobalDescriptorTable(ProcessorState->SpecialRegisters.Gdtr);
+ Ke386GetInterruptDescriptorTable(ProcessorState->SpecialRegisters.Idtr);
Ke386GetTr(ProcessorState->SpecialRegisters.Tr);
Ke386GetLocalDescriptorTable(ProcessorState->SpecialRegisters.Ldtr);
}