ntdll: add Sparc processor support

Austin English austinenglish at gmail.com
Mon Aug 23 08:39:09 CDT 2010


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index a2b1023..d36a5e9 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -897,6 +897,8 @@ void fill_cpu_info(void)
     cached_sci.Architecture     = PROCESSOR_ARCHITECTURE_PPC;
 #elif defined(__ALPHA__)
     cached_sci.Architecture     = PROCESSOR_ARCHITECTURE_ALPHA;
+#elif defined(__sparc__)
+    cached_sci.Architecture     = PROCESSOR_ARCHITECTURE_SPARC;
 #else
 #error Unknown CPU
 #endif
diff --git a/include/winnt.h b/include/winnt.h
index 0bcb31b..c08daa5 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -524,6 +524,7 @@ typedef DWORD FLONG;
 #define PROCESSOR_ARCHITECTURE_ALPHA64  7
 #define PROCESSOR_ARCHITECTURE_MSIL     8
 #define PROCESSOR_ARCHITECTURE_AMD64    9
+#define PROCESSOR_ARCHITECTURE_SPARC    10
 #define PROCESSOR_ARCHITECTURE_UNKNOWN	0xFFFF
 
 /* dwProcessorType */


More information about the wine-patches mailing list