On 02/07/19 19:45, Nadav Amit wrote: >>> I know you are not “serious”, but I’ll use this opportunity for a small >>> clarification. You do need to provide the real number of CPUs as otherwise >>> things will fail. I do not use cpuid, as my machine, for example has two >>> sockets. Decoding the ACPI tables is the right way, but I was too lazy to >>> implement it. >> What about the mptables, too? > If you mean to reuse mptable.c from [1] or [2] - I can give it a shot. I am > not about to write my own parser. Sure. Paolo > [1] https://github.com/kernelslacker/x86info/blob/master/mptable.c > [2] https://people.freebsd.org/~fsmp/SMP/mptable/mptable.c