From 3e7c3b46978dff7fceff2b9c7e2235431b0d7ab6 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 14 Jun 2015 19:58:45 +0000 Subject: [PATCH] [NTOSKRNL] Complete NtQuerySystemInformation - SystemNumaProcessorMap stub so that it is possible to query the highest node number (and only that!) CORE-9680 svn path=/trunk/; revision=68142 --- reactos/ntoskrnl/ex/sysinfo.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/reactos/ntoskrnl/ex/sysinfo.c b/reactos/ntoskrnl/ex/sysinfo.c index b352657d611..007543fcd11 100644 --- a/reactos/ntoskrnl/ex/sysinfo.c +++ b/reactos/ntoskrnl/ex/sysinfo.c @@ -2168,9 +2168,31 @@ SSI_DEF(SystemLoadGdiDriverInSystemSpaceInformation) /* Class 55 - NUMA processor information */ QSI_DEF(SystemNumaProcessorMap) { + PSYSTEM_NUMA_INFORMATION NumaInformation = (PSYSTEM_NUMA_INFORMATION)Buffer; + + if (Size < sizeof(ULONG)) + { + return STATUS_INFO_LENGTH_MISMATCH; + } + +#if 1 // Partial & incomplete implementation just to let GetNumaHighestNodeNumber() work + /* In case of a partial query, just return number of nodes and stop here */ + if (Size < sizeof(SYSTEM_NUMA_INFORMATION)) + { + NumaInformation->HighestNodeNumber = KeNumberNodes - 1; + *ReqSize = sizeof(ULONG); + return STATUS_SUCCESS; + } + else + { + DPRINT1("NtQuerySystemInformation - SystemNumaProcessorMap not implemented\n"); + return STATUS_NOT_IMPLEMENTED; + } +#else /* FIXME */ DPRINT1("NtQuerySystemInformation - SystemNumaProcessorMap not implemented\n"); return STATUS_NOT_IMPLEMENTED; +#endif }