diff options
Diffstat (limited to '')
-rw-r--r-- | testsuites/validation/ts-default.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h index 9f317abf80..86c0b4e345 100644 --- a/testsuites/validation/ts-default.h +++ b/testsuites/validation/ts-default.h @@ -3,12 +3,14 @@ /** * @file * + * @ingroup RTEMSTestSuitesValidation + * * @brief This header file provides the default validation test suite runner * and application configuration. */ /* - * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) + * Copyright (C) 2020 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -296,25 +298,38 @@ T_scheduler_operations[ CONFIGURE_MAXIMUM_PROCESSORS ] = { #define SCHEDULER_PRIORITY_ENTRY_POINTS T_SCHEDULER_ENTRY_POINTS -#define CONFIGURE_SCHEDULER_NAME TEST_SCHEDULER_A_NAME - #define CONFIGURE_SCHEDULER_PRIORITY +#if defined(CONFIGURE_SCHEDULER_TABLE_ENTRIES) + +#include <rtems/scheduler.h> + +RTEMS_SCHEDULER_PRIORITY( a, 64 ); + +#else /* CONFIGURE_SCHEDULER_TABLE_ENTRIES */ + +#define CONFIGURE_SCHEDULER_NAME TEST_SCHEDULER_A_NAME + #define CONFIGURE_MAXIMUM_PRIORITY 127 +#endif /* CONFIGURE_SCHEDULER_TABLE_ENTRIES */ + #endif #define CONFIGURE_IDLE_TASK_STACK_SIZE TEST_IDLE_STACK_SIZE static char test_idle_stacks[ CONFIGURE_MAXIMUM_PROCESSORS ][ - ( TEST_IDLE_STACK_SIZE + CPU_IDLE_TASK_IS_FP * CONTEXT_FP_SIZE ) + RTEMS_ALIGN_UP( + MAX_TLS_SIZE + TEST_IDLE_STACK_SIZE + CPU_IDLE_TASK_IS_FP * CONTEXT_FP_SIZE, + CPU_INTERRUPT_STACK_ALIGNMENT + ) ] RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT ) RTEMS_SECTION( ".rtemsstack.idle" ); -void *test_idle_task_stack_allocate( uint32_t cpu_index, size_t size ) +void *test_idle_task_stack_allocate( uint32_t cpu_index, size_t *size ) { - if ( size > sizeof( test_idle_stacks[ 0 ] ) ) { + if ( *size > sizeof( test_idle_stacks[ 0 ] ) ) { rtems_fatal( RTEMS_FATAL_SOURCE_APPLICATION, 0xABAD1DEA ); } |