forked from Imagelibrary/rtems
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.
42 lines
878 B
C
42 lines
878 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "../spfatal_support/spfatal.h"
|
|
|
|
/*
|
|
* Classic API Init task create failure
|
|
*/
|
|
|
|
#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)
|
|
{
|
|
/*
|
|
* Case 2: Null entry
|
|
* Case 3: semaphore_create
|
|
* _Thread_Dispatch_disable
|
|
* semaphore_obtain
|
|
*/
|
|
|
|
/* we will not run this far */
|
|
}
|
|
|
|
#include "../spfatal_support/spfatalimpl.h"
|