diff options
Diffstat (limited to 'testsuites/psxtests/psxsignal07/rtems_config.c')
-rw-r--r-- | testsuites/psxtests/psxsignal07/rtems_config.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxsignal07/rtems_config.c b/testsuites/psxtests/psxsignal07/rtems_config.c new file mode 100644 index 0000000000..e3f3349640 --- /dev/null +++ b/testsuites/psxtests/psxsignal07/rtems_config.c @@ -0,0 +1,44 @@ +/* + * COPYRIGHT (c) 2019. + * On-Line Applications Research Corporation (OAR). + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <stdlib.h> + +int main(int argc, char **argv); + +static char *argv_list[] = { + "psxsignal07", + "" +}; +static void *POSIX_Init(void *arg) +{ + (void) arg; /* deliberately ignored */ + + /* + * Initialize optional services + */ + + /* + * Could get arguments from command line or have a static set. + */ + (void) main(1, argv_list); + + return NULL; +} + +#include <bsp.h> /* 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_POSIX_INIT_THREAD_TABLE + +#define CONFIGURE_UNLIMITED_OBJECTS +#define CONFIGURE_UNIFIED_WORK_AREAS + +#define CONFIGURE_INIT +#include <rtems/confdefs.h> |