[rtems-libbsd commit] The maxid is not the number of cpus.

Chris Johns chrisj at rtems.org
Fri May 6 05:52:09 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    7a79eec6fc81190261993e3af3f548b3efbb5e09
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7a79eec6fc81190261993e3af3f548b3efbb5e09

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri May  6 14:40:12 2016 +1000

The maxid is not the number of cpus.

---

 freebsd/sys/sys/smp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freebsd/sys/sys/smp.h b/freebsd/sys/sys/smp.h
index 6038c38..776fc3a 100644
--- a/freebsd/sys/sys/smp.h
+++ b/freebsd/sys/sys/smp.h
@@ -87,7 +87,7 @@ extern volatile int smp_started;
 
 extern cpuset_t all_cpus;
 #else /* __rtems__ */
-#define mp_maxid 1U
+#define mp_maxid 0U
 #define mp_maxcpus 1
 #define mp_ncpus 1
 #define all_cpus 1U




More information about the vc mailing list