Austin English : ntdll: Add Sparc processor support.

Alexandre Julliard julliard at winehq.org
Tue Aug 24 11:09:15 CDT 2010


Module: wine
Branch: master
Commit: 7b37a6d47ea36b2c616507dee63d8d4e221a0f08
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7b37a6d47ea36b2c616507dee63d8d4e221a0f08

Author: Austin English <austinenglish at gmail.com>
Date:   Mon Aug 23 08:39:09 2010 -0500

ntdll: Add Sparc processor support.

---

 dlls/ntdll/nt.c |    2 ++
 include/winnt.h |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 4472734..ee50921 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -922,6 +922,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 9b6477c..e3ccd8d 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -526,6 +526,9 @@ typedef DWORD FLONG;
 #define PROCESSOR_ARCHITECTURE_AMD64    9
 #define PROCESSOR_ARCHITECTURE_UNKNOWN	0xFFFF
 
+/* Wine extension */
+#define PROCESSOR_ARCHITECTURE_SPARC    20
+
 /* dwProcessorType */
 #define PROCESSOR_INTEL_386      386
 #define PROCESSOR_INTEL_486      486




More information about the wine-cvs mailing list