[rtems-libbsd commit] ZONE(9): Fix mp_maxid definition
Sebastian Huber
sebh at rtems.org
Wed Aug 3 12:12:15 UTC 2016
Module: rtems-libbsd
Branch: 4.11
Commit: ce4cfe1f07523cf3ef0e7db2ef4c3445f2bd19f9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=ce4cfe1f07523cf3ef0e7db2ef4c3445f2bd19f9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri May 6 07:57:46 2016 +0200
ZONE(9): Fix mp_maxid definition
---
freebsd/sys/vm/uma_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index 845c433..7badb36 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -98,7 +98,7 @@ __FBSDID("$FreeBSD$");
#undef curcpu
#define curcpu rtems_get_current_processor()
#undef mp_maxid
- #define mp_maxid rtems_get_processor_count()
+ #define mp_maxid (rtems_get_processor_count() - 1)
#define SMP
#endif
#endif /* __rtems__ */
More information about the vc
mailing list