From 7b37a6d47ea36b2c616507dee63d8d4e221a0f08 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 23 Aug 2010 08:39:09 -0500 Subject: [PATCH] ntdll: Add Sparc processor support. --- dlls/ntdll/nt.c | 2 ++ include/winnt.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 44727345726..ee5092133c3 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 9b6477c4949..e3ccd8da9e3 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