diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 08:40:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:18 +0100 |
commit | 6b0873ffdfd59f163dbb3a64b77dd6604701435d (patch) | |
tree | 2810ca7ae03050396ad97f215f19ac8bf38c5c79 /testsuites/sptests/spfatal01 | |
parent | sptests/spcbssched03: Include missing header file (diff) | |
download | rtems-6b0873ffdfd59f163dbb3a64b77dd6604701435d.tar.bz2 |
config: Remove CONFIGURE_HAS_OWN_INIT_TASK_TABLE
The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and
CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_*
configuration options. These two options are probably unused, see also:
* https://lists.rtems.org/pipermail/users/2019-April/033129.html
* https://lists.rtems.org/pipermail/users/2019-April/033130.html
Removing them simplifies the configuration. If there is a real user need
which shows up after the removal, we can resurrect them on demand.
Using CONFIGURE_HAS_OWN_INIT_TASK_TABLE would have required the use of
the undocumented CONFIGURE_INIT_TASK_TABLE and
CONFIGURE_INIT_TASK_TABLE_SIZE configuration options.
Update #3873.
Diffstat (limited to 'testsuites/sptests/spfatal01')
-rw-r--r-- | testsuites/sptests/spfatal01/init.c | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/testsuites/sptests/spfatal01/init.c b/testsuites/sptests/spfatal01/init.c index 95067e74c6..4f0c008855 100644 --- a/testsuites/sptests/spfatal01/init.c +++ b/testsuites/sptests/spfatal01/init.c @@ -8,31 +8,24 @@ * Classic API Init task create failure */ -/* - * Way too much stack space. Should generate a fatal error - * on the init task create. - */ -#define CONFIGURE_HAS_OWN_INIT_TASK_TABLE -#define CONFIGURE_INIT_TASK_STACK_SIZE 0 -rtems_initialization_tasks_table Initialization_tasks[] = { - { rtems_build_name('I', 'N', 'I', ' '), - 32UL * 1024UL, - 1, - RTEMS_DEFAULT_ATTRIBUTES, - Init, - RTEMS_DEFAULT_MODES, - 0 - } -}; -#define CONFIGURE_INIT_TASK_TABLE Initialization_tasks -#define CONFIGURE_INIT_TASK_TABLE_SIZE \ - sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table) - #define FATAL_ERROR_TEST_NAME "1" #define FATAL_ERROR_DESCRIPTION "Classic API Init task create failure" #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE #define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED +static void *stack_allocator(size_t unused) +{ + return NULL; +} + +static void stack_deallocator(void *unused) +{ +} + +#define CONFIGURE_TASK_STACK_ALLOCATOR stack_allocator + +#define CONFIGURE_TASK_STACK_DEALLOCATOR stack_deallocator + static void force_error(void) { /* |