> That comes directly from the count it passes.
--- gnumach/kern/thread.c 2019-09-03 01:22:10.932747830 +0200
+++ GNUMach_SMP/kern/thread.c 2019-10-27 19:00:17.577010318 +0100
@@ -1530,6 +1530,16 @@
read_time_stamp(&thread->creation_time,
&basic_info->creation_time);
+ #if THREAD_BASIC_INFO_COUNT > 10
+
+ #if NCPUS > 1
+ basic_info->last_processor = thread->last_processor;
+ #else
+ basic_info->last_processor = 0;
+ #endif
+
+ #endif
+
> That's inconvenient so ideally it should be fixed
in procfs by checking that the *thread_info_count count includes the
last_processor field, and if
> not set it to 0.
Attached new patch