From 8df1b535080cbac0328985f15eaac3f96eb45f95 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Fri, 5 May 2023 22:04:35 +0600 Subject: [PATCH] [NTOS:CM] Initialize the alternative system architecture field on PC-98 builds (#5136) This is needed by some 3rd party drivers. CORE-17977 --- ntoskrnl/config/cmconfig.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ntoskrnl/config/cmconfig.c b/ntoskrnl/config/cmconfig.c index 42c428f971e..43239537d79 100644 --- a/ntoskrnl/config/cmconfig.c +++ b/ntoskrnl/config/cmconfig.c @@ -333,6 +333,11 @@ CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock) ULONG Disposition; UNICODE_STRING KeyName; + /* Set the alternative system architecture information */ +#if defined(SARCH_PC98) + SharedUserData->AlternativeArchitecture = NEC98x86; +#endif + /* Setup the key name */ RtlInitUnicodeString(&KeyName, L"\\Registry\\Machine\\Hardware\\DeviceMap");