These files were on my "ignore-on-commit" list.
authorDavid Quintana <gigaherz@gmail.com>
Sat, 24 May 2014 20:58:13 +0000 (20:58 +0000)
committerDavid Quintana <gigaherz@gmail.com>
Sat, 24 May 2014 20:58:13 +0000 (20:58 +0000)
svn path=/branches/shell-experiments/; revision=63434

CMakeLists.txt
ntoskrnl/ke/i386/cpu.c

index a6a48ac..d473689 100644 (file)
@@ -63,6 +63,9 @@ if(NOT CMAKE_CROSSCOMPILING)
         if(ARCH STREQUAL "i386")
             add_definitions(/D_X86_ /DWIN32 /D_WINDOWS)
         endif()
+        if(MSVC_VERSION GREATER 1699)
+            add_definitions(/D_ALLOW_KEYWORD_MACROS)
+        endif()
         add_definitions(/Dinline=__inline)
     else()
         add_compile_flags("-fshort-wchar -Wno-multichar")
index 2d741ab..0956811 100644 (file)
@@ -1432,7 +1432,8 @@ KeSaveFloatingPointState(OUT PKFLOATING_SAVE Save)
 #else
     __asm
     {
-        fnsave [FpState]
+        mov eax, [FpState]
+        fnsave [eax]
     };
 #endif
 
@@ -1458,7 +1459,8 @@ KeRestoreFloatingPointState(IN PKFLOATING_SAVE Save)
     __asm
     {
         fnclex
-        frstor [FpState]
+        mov eax, [FpState]
+        frstor [eax]
     };
 #endif