From 4fc65126cfedca1451eaaaeb49bc0d0f982a4236 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 16 Apr 2010 16:59:01 +0200 Subject: [PATCH] ntdll: Report the correct processor architecture. --- dlls/ntdll/nt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index b262c1e4be3..e7700a13446 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -888,8 +888,18 @@ void fill_cpu_info(void) /* choose sensible defaults ... * FIXME: perhaps overridable with precompiler flags? */ +#ifdef __i386__ cached_sci.Architecture = PROCESSOR_ARCHITECTURE_INTEL; cached_sci.Level = 5; /* 586 */ +#elif defined(__x86_64__) + cached_sci.Architecture = PROCESSOR_ARCHITECTURE_AMD64; +#elif defined(__powerpc__) + cached_sci.Architecture = PROCESSOR_ARCHITECTURE_PPC; +#elif defined(__ALPHA__) + cached_sci.Architecture = PROCESSOR_ARCHITECTURE_ALPHA; +#else +#error Unknown CPU +#endif cached_sci.Revision = 0; cached_sci.Reserved = 0; cached_sci.FeatureSet = 0x1fff; /* FIXME: set some sensible defaults out of ProcessFeatures[] */ -- 2.11.4.GIT