summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-16 14:37:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-17 14:24:35 +0100
commitb7c39f7387407c34000ac0578d3540deb65e25f2 (patch)
tree6f4cd3d7ad8d80bccd6dcc3cf2a1592dc6a11bf0
parentmodules: Update rsb (diff)
downloadrtems-central-b7c39f7387407c34000ac0578d3540deb65e25f2.tar.bz2
spec: Update semaphore specification
-rw-r--r--spec/rtems/sem/constraint/create-mrsp-not-locked.yml11
-rw-r--r--spec/rtems/sem/if/create.yml2
-rw-r--r--spec/rtems/sem/if/set-priority.yml3
3 files changed, 2 insertions, 14 deletions
diff --git a/spec/rtems/sem/constraint/create-mrsp-not-locked.yml b/spec/rtems/sem/constraint/create-mrsp-not-locked.yml
deleted file mode 100644
index b582aa2c..00000000
--- a/spec/rtems/sem/constraint/create-mrsp-not-locked.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-copyrights:
-- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
-enabled-by: true
-links: []
-rationale: null
-scope: user
-text: |
- When a semaphore using the MrsP locking protocol is created, the initial
- count shall be exactly one.
-type: constraint
diff --git a/spec/rtems/sem/if/create.yml b/spec/rtems/sem/if/create.yml
index 86abbebe..e16db848 100644
--- a/spec/rtems/sem/if/create.yml
+++ b/spec/rtems/sem/if/create.yml
@@ -132,8 +132,6 @@ links:
- role: constraint
uid: /constraint/mp-send
- role: constraint
- uid: ../constraint/create-mrsp-not-locked
-- role: constraint
uid: ../constraint/max
- role: constraint
uid: /constraint/obj-unlimited-alloc
diff --git a/spec/rtems/sem/if/set-priority.yml b/spec/rtems/sem/if/set-priority.yml
index 5b76bd74..3b5569a8 100644
--- a/spec/rtems/sem/if/set-priority.yml
+++ b/spec/rtems/sem/if/set-priority.yml
@@ -84,7 +84,8 @@ notes: |
sc = rtems_semaphore_create(
rtems_build_name( 'M', 'R', 'S', 'P' ),
1,
- RTEMS_BINARY_SEMAPHORE | RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
+ RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY |
+ RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
1,
&semaphore_id
);