[NDK] Add missing nop NEC definitions if not X86 (for consistency with what's done in the kernel-mode headers). Addendum to 9feab8e9.

This commit is contained in:
Hermès Bélusca-Maïto 2020-11-26 02:03:06 +01:00
parent 131bc73555
commit de16ef3da0
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -221,8 +221,8 @@ typedef CCHAR KPROCESSOR_MODE;
//
#define SharedUserData ((KUSER_SHARED_DATA *)USER_SHARED_DATA)
/* Macros for user-mode run-time checks of X86 system architecture */
#ifdef _X86_
/* Macros for user-mode run-time checks of X86 system architecture */
#ifndef IsNEC_98
#define IsNEC_98 (SharedUserData->AlternativeArchitecture == NEC98x86)
@ -242,8 +242,27 @@ typedef CCHAR KPROCESSOR_MODE;
#define SetNotNEC_98
#endif
#else // !_X86_
/* Correctly define these run-time definitions for non X86 machines */
#ifndef IsNEC_98
#define IsNEC_98 (FALSE)
#endif
#ifndef IsNotNEC_98
#define IsNotNEC_98 (TRUE)
#endif
#ifndef SetNEC_98
#define SetNEC_98
#endif
#ifndef SetNotNEC_98
#define SetNotNEC_98
#endif
#endif // _X86_
//
// Maximum WOW64 Entries in KUSER_SHARED_DATA
//