mirror of
https://github.com/reactos/reactos.git
synced 2025-07-15 08:34:05 +00:00
[NTOS]
MSVC compatibility fix: use DECLSPEC_ALIGN and remove inline asm (it was testcode anyway) svn path=/branches/ros-amd64-bringup/; revision=45325
This commit is contained in:
parent
ef3224edab
commit
6b38c83e7a
1 changed files with 2 additions and 3 deletions
|
@ -31,8 +31,8 @@ extern ADDRESS_RANGE KeMemoryMap[64];
|
||||||
KIPCR KiInitialPcr;
|
KIPCR KiInitialPcr;
|
||||||
|
|
||||||
/* Boot and double-fault/NMI/DPC stack */
|
/* Boot and double-fault/NMI/DPC stack */
|
||||||
UCHAR P0BootStackData[KERNEL_STACK_SIZE] __attribute__((aligned (16))) = {0};
|
UCHAR P0BootStackData[KERNEL_STACK_SIZE] DECLSPEC_ALIGN(16) = {0};
|
||||||
UCHAR KiDoubleFaultStackData[KERNEL_STACK_SIZE] __attribute__((aligned (16))) = {0};
|
UCHAR KiDoubleFaultStackData[KERNEL_STACK_SIZE] DECLSPEC_ALIGN(16) = {0};
|
||||||
ULONG_PTR P0BootStack = (ULONG_PTR)&P0BootStackData[KERNEL_STACK_SIZE];
|
ULONG_PTR P0BootStack = (ULONG_PTR)&P0BootStackData[KERNEL_STACK_SIZE];
|
||||||
ULONG_PTR KiDoubleFaultStack = (ULONG_PTR)&KiDoubleFaultStackData[KERNEL_STACK_SIZE];
|
ULONG_PTR KiDoubleFaultStack = (ULONG_PTR)&KiDoubleFaultStackData[KERNEL_STACK_SIZE];
|
||||||
|
|
||||||
|
@ -189,7 +189,6 @@ KiInitializeCpuFeatures(ULONG Cpu)
|
||||||
/* Disable x87 fpu exceptions */
|
/* Disable x87 fpu exceptions */
|
||||||
__writecr0(__readcr0() & ~CR0_NE);
|
__writecr0(__readcr0() & ~CR0_NE);
|
||||||
|
|
||||||
asm volatile ("fninit\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue