mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[NDK][XDK] Add some missing macros for run-time checks of X86 system architecture (NEC support).
This commit is contained in:
parent
c295fb95e9
commit
9feab8e95a
3 changed files with 45 additions and 0 deletions
|
@ -335,4 +335,25 @@ KeGetCurrentProcessorNumber(VOID)
|
|||
return (ULONG)__readfsbyte(FIELD_OFFSET(KPCR, Number));
|
||||
}
|
||||
|
||||
/* Macros for kernel-mode run-time checks of X86 system architecture */
|
||||
#ifdef IsNEC_98
|
||||
#undef IsNEC_98
|
||||
#endif
|
||||
#define IsNEC_98 (SharedUserData->AlternativeArchitecture == NEC98x86)
|
||||
|
||||
#ifdef IsNotNEC_98
|
||||
#undef IsNotNEC_98
|
||||
#endif
|
||||
#define IsNotNEC_98 (SharedUserData->AlternativeArchitecture != NEC98x86)
|
||||
|
||||
#ifdef SetNEC_98
|
||||
#undef SetNEC_98
|
||||
#endif
|
||||
#define SetNEC_98 (SharedUserData->AlternativeArchitecture = NEC98x86)
|
||||
|
||||
#ifdef SetNotNEC_98
|
||||
#undef SetNotNEC_98
|
||||
#endif
|
||||
#define SetNotNEC_98 (SharedUserData->AlternativeArchitecture = StandardDesign)
|
||||
|
||||
$endif (_NTDDK_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue