summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-30 13:02:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-30 13:03:03 +0200
commit2f48804c69a31be611f6464f660f80e0dc312166 (patch)
treee7dfaf30b2cf55fdecd32eefab1942ce4491c8f7
parentmodules: Update rtems (diff)
downloadrtems-central-2f48804c69a31be611f6464f660f80e0dc312166.tar.bz2
generate_membench.py: Add task create workaround
-rwxr-xr-xgenerate_membench.py17
-rw-r--r--spec/rtems/timer/val/mem-srv-init.yml15
2 files changed, 31 insertions, 1 deletions
diff --git a/generate_membench.py b/generate_membench.py
index ccd0c3ca..beacf0b3 100755
--- a/generate_membench.py
+++ b/generate_membench.py
@@ -643,7 +643,22 @@ ${../if/create:/name} and ${../if/delete:/name}""",
${../if/initiate-server:/name}""",
None,
"(void) rtems_timer_initiate_server( 0, 0, 0 );",
- _CONFIG_DEFAULT),
+ """static void *task_stack_allocate( size_t size )
+{
+ (void) size;
+ return NULL;
+}
+
+static void task_stack_deallocate( void *stack )
+{
+ (void) stack;
+}
+
+#define CONFIGURE_TASK_STACK_ALLOCATOR task_stack_allocate
+
+#define CONFIGURE_TASK_STACK_DEALLOCATOR task_stack_deallocate
+
+""" + _CONFIG_DEFAULT),
_Test(
"rtems/timer",
"srv-after",
diff --git a/spec/rtems/timer/val/mem-srv-init.yml b/spec/rtems/timer/val/mem-srv-init.yml
index 39792987..4ef1fe9d 100644
--- a/spec/rtems/timer/val/mem-srv-init.yml
+++ b/spec/rtems/timer/val/mem-srv-init.yml
@@ -16,6 +16,21 @@ test-code: |
(void) rtems_timer_initiate_server( 0, 0, 0 );
}
+ static void *task_stack_allocate( size_t size )
+ {
+ (void) size;
+ return NULL;
+ }
+
+ static void task_stack_deallocate( void *stack )
+ {
+ (void) stack;
+ }
+
+ #define CONFIGURE_TASK_STACK_ALLOCATOR task_stack_allocate
+
+ #define CONFIGURE_TASK_STACK_DEALLOCATOR task_stack_deallocate
+
#define TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES
#define TASK_STORAGE_SIZE \