source: rtems/testsuites/sptests/spfatal07/testcase.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * Classic API Init task create failure
3 *
4 *  COPYRIGHT (c) 1989-2011.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 */
11
12/*
13 *  Way too much stack space.  Should generate a fatal error
14 *  on the init task create.
15 */
16#define CONFIGURE_HAS_OWN_INIT_TASK_TABLE
17#define CONFIGURE_INIT_TASK_STACK_SIZE   RTEMS_MINIMUM_STACK_SIZE
18rtems_initialization_tasks_table Initialization_tasks[] = {
19  { rtems_build_name('I', 'N', 'I', ' '),
20    RTEMS_MINIMUM_STACK_SIZE,
21    1,
22    RTEMS_DEFAULT_ATTRIBUTES,
23    Init,
24    RTEMS_DEFAULT_MODES,
25    0
26  }
27};
28#define CONFIGURE_INIT_TASK_TABLE Initialization_tasks
29#define CONFIGURE_INIT_TASK_TABLE_SIZE \
30  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
31
32#define FATAL_ERROR_TEST_NAME            "7"
33#define FATAL_ERROR_DESCRIPTION \
34        "Core Configuration Invalid ISR stack size"
35#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
36#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
37#define FATAL_ERROR_EXPECTED_ERROR       \
38          INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
39
40void force_error()
41{
42  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
43    Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1);
44    rtems_initialize_data_structures();
45  #else
46    printk(
47      "WARNING - Test not applicable on this target architecture.\n"
48      "WARNING - Only applicable when CPU_ALLOCATE_INTERRUPT_STACK == TRUE.\n"
49      "*** END OF TEST FATAL " FATAL_ERROR_TEST_NAME " ***\n"
50    );
51    rtems_test_exit(0);
52  #endif
53
54  /* we will not run this far */
55}
Note: See TracBrowser for help on using the repository browser.