[rtems commit] rtems: Use unique option values
Sebastian Huber
sebh at rtems.org
Wed Aug 19 04:48:45 UTC 2020
Module: rtems
Branch: master
Commit: 593a67f6c891f48b8cebc8bf0db1b47faafbfc2a
Changeset: http://git.rtems.org/rtems/commit/?id=593a67f6c891f48b8cebc8bf0db1b47faafbfc2a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 17 12:29:24 2020 +0200
rtems: Use unique option values
The RTEMS_BARRIER_AUTOMATIC_RELEASE and RTEMS_BINARY_SEMAPHORE options
had the same value. In order to better detect a misuse of option values
(for example using RTEMS_BINARY_SEMAPHORE for rtems_barrier_create()),
the options should have unique values.
Close #4054.
---
cpukit/include/rtems/rtems/attr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/rtems/attr.h b/cpukit/include/rtems/rtems/attr.h
index abc9da0..74ed96f 100644
--- a/cpukit/include/rtems/rtems/attr.h
+++ b/cpukit/include/rtems/rtems/attr.h
@@ -156,7 +156,7 @@ typedef uint32_t rtems_attribute;
* This attribute constant indicates that the Classic API Barrier
* instance created will use an automatic release protocol.
*/
-#define RTEMS_BARRIER_AUTOMATIC_RELEASE 0x00000010
+#define RTEMS_BARRIER_AUTOMATIC_RELEASE 0x00000200
/**
* This attribute constant indicates that the Classic API Barrier
More information about the vc
mailing list