Module: wine Branch: master Commit: bf05d85f990086cc947f899cb411523f2838e43e URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf05d85f990086cc947f899cb4...
Author: Francois Gouget fgouget@free.fr Date: Wed Aug 24 15:17:27 2011 +0200
ntdll: Detect if NX support is enabled.
---
dlls/ntdll/nt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 83a341f..000c62a 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -1044,6 +1044,8 @@ void fill_cpu_info(void) user_shared_data->ProcessorFeatures[PF_COMPARE_EXCHANGE128] = TRUE; if (strstr(value, "mmx")) user_shared_data->ProcessorFeatures[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE; + if (strstr(value, "nx")) + user_shared_data->ProcessorFeatures[PF_NX_ENABLED] = TRUE; if (strstr(value, "tsc")) user_shared_data->ProcessorFeatures[PF_RDTSC_INSTRUCTION_AVAILABLE] = TRUE; if (strstr(value, "3dnow"))