[NTOS]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 29 Jan 2010 23:25:05 +0000 (23:25 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 29 Jan 2010 23:25:05 +0000 (23:25 +0000)
MSVC compatibility fix: use DECLSPEC_ALIGN and remove inline asm (it was testcode anyway)

svn path=/branches/ros-amd64-bringup/; revision=45325

reactos/ntoskrnl/ke/amd64/kiinit.c

index 0abb16f..b80872a 100644 (file)
@@ -31,8 +31,8 @@ extern ADDRESS_RANGE KeMemoryMap[64];
 KIPCR KiInitialPcr;
 
 /* Boot and double-fault/NMI/DPC stack */
-UCHAR P0BootStackData[KERNEL_STACK_SIZE] __attribute__((aligned (16))) = {0};
-UCHAR KiDoubleFaultStackData[KERNEL_STACK_SIZE] __attribute__((aligned (16))) = {0};
+UCHAR P0BootStackData[KERNEL_STACK_SIZE] DECLSPEC_ALIGN(16) = {0};
+UCHAR KiDoubleFaultStackData[KERNEL_STACK_SIZE] DECLSPEC_ALIGN(16) = {0};
 ULONG_PTR P0BootStack = (ULONG_PTR)&P0BootStackData[KERNEL_STACK_SIZE];
 ULONG_PTR KiDoubleFaultStack = (ULONG_PTR)&KiDoubleFaultStackData[KERNEL_STACK_SIZE];
 
@@ -189,7 +189,6 @@ KiInitializeCpuFeatures(ULONG Cpu)
     /* Disable x87 fpu exceptions */
     __writecr0(__readcr0() & ~CR0_NE);
     
-    asm volatile ("fninit\n");
 }
 
 VOID