From b7c39f7387407c34000ac0578d3540deb65e25f2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 16 Mar 2021 14:37:11 +0100 Subject: spec: Update semaphore specification --- spec/rtems/sem/constraint/create-mrsp-not-locked.yml | 11 ----------- spec/rtems/sem/if/create.yml | 2 -- spec/rtems/sem/if/set-priority.yml | 3 ++- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 spec/rtems/sem/constraint/create-mrsp-not-locked.yml 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 @@ -131,8 +131,6 @@ links: uid: /constraint/object-allocator - role: constraint uid: /constraint/mp-send -- role: constraint - uid: ../constraint/create-mrsp-not-locked - role: constraint uid: ../constraint/max - role: constraint 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 ); -- cgit v1.2.3