[rtems-central commit] spec: Specify RTEMS_MINIMUM_STACK_SIZE

Sebastian Huber sebh at rtems.org
Fri Nov 19 07:51:57 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    bd9519d7e97b67b5776fa88968246b8a4f1aa478
Changeset: http://git.rtems.org/rtems-central/commit/?id=bd9519d7e97b67b5776fa88968246b8a4f1aa478

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 18 08:50:19 2021 +0100

spec: Specify RTEMS_MINIMUM_STACK_SIZE

---

 spec/rtems/task/req/minimum-stack-size.yml | 16 ++++++++++++++++
 spec/rtems/task/val/task.yml               | 12 ++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/spec/rtems/task/req/minimum-stack-size.yml b/spec/rtems/task/req/minimum-stack-size.yml
new file mode 100644
index 0000000..8b08503
--- /dev/null
+++ b/spec/rtems/task/req/minimum-stack-size.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: true
+links:
+- role: interface-function
+  uid: ../if/minimum-stack-size
+functional-type: function
+rationale: null
+references: []
+requirement-type: functional
+text: |
+  The ${../if/minimum-stack-size:/name} constant shall expand to a constant
+  expression which evaluates to the value of
+  ${/score/stack/if/minimum-size:/name}.
+type: requirement
diff --git a/spec/rtems/task/val/task.yml b/spec/rtems/task/val/task.yml
index 5d36dbc..e7caa97 100644
--- a/spec/rtems/task/val/task.yml
+++ b/spec/rtems/task/val/task.yml
@@ -114,6 +114,18 @@ test-actions:
   - role: validation
     uid: ../req/no-priority
 - action-brief: |
+    Assert that ${../if/minimum-stack-size:/name} is a constant expression which
+    evaluates to the expected value.
+  action-code: |
+    RTEMS_STATIC_ASSERT(
+      RTEMS_MINIMUM_STACK_SIZE == STACK_MINIMUM_SIZE,
+      MINIMUM_STACK_SIZE
+    );
+  checks: []
+  links:
+  - role: validation
+    uid: ../req/minimum-stack-size
+- action-brief: |
     Validate ${../if/self-define:/name} using a sample directive call.
   action-code: |
     rtems_status_code sc;



More information about the vc mailing list