From 8798372261ed1df999bc9f4f3f0be0a230480041 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 10 Sep 2019 12:53:31 -0500 Subject: Correct initial POSIX signals mask + Modify POSIX thread create extension to ensure expected initial signal mask is provided to system threads, initial tasks and threads, and inheritied by tasks and threads. + Adds psxsignal07 to verify functionality when using a POSIX Initialization thread and POSIX threads. + Adds psxsignal08 to verify functionality when using a Classic API Initialization task and Classic API tasks. Closes #3794. --- testsuites/psxtests/psxsignal08/rtems_config.c | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 testsuites/psxtests/psxsignal08/rtems_config.c (limited to 'testsuites/psxtests/psxsignal08/rtems_config.c') diff --git a/testsuites/psxtests/psxsignal08/rtems_config.c b/testsuites/psxtests/psxsignal08/rtems_config.c new file mode 100644 index 0000000000..f56e88c8be --- /dev/null +++ b/testsuites/psxtests/psxsignal08/rtems_config.c @@ -0,0 +1,45 @@ +/* + * COPYRIGHT (c) 2019. + * On-Line Applications Research Corporation (OAR). + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +int main(int argc, char **argv); + +static char *argv_list[] = { + "report", + "" +}; +static rtems_task Init(rtems_task_argument arg) +{ + (void) arg; /* deliberately ignored */ + + /* + * Initialize optional services + */ + + /* + * Could get arguments from command line or have a static set. + */ + (void) main(1, argv_list); + + exit(0); +} + +#include /* for device driver prototypes */ + +/* NOTICE: the clock driver is explicitly disabled */ +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_UNLIMITED_OBJECTS +#define CONFIGURE_UNIFIED_WORK_AREAS + +#define CONFIGURE_INIT +#include -- cgit v1.2.3