5
Last change
on this file since 54835ae was
54835ae,
checked in by Sebastian Huber <sebastian.huber@…>, on 02/01/17 at 13:10:18
|
Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS
Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS
since the SMP part is superfluous.
Update #2894.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2016 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifdef HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #define TESTS_USE_PRINTK |
---|
20 | #include "tmacros.h" |
---|
21 | |
---|
22 | #include <rtems.h> |
---|
23 | |
---|
24 | const char rtems_test_name[] = "SMPFATAL 6"; |
---|
25 | |
---|
26 | static void Init(rtems_task_argument arg) |
---|
27 | { |
---|
28 | rtems_interrupt_level level; |
---|
29 | |
---|
30 | TEST_BEGIN(); |
---|
31 | |
---|
32 | rtems_interrupt_local_disable(level); |
---|
33 | (void) level; |
---|
34 | rtems_task_wake_after(1); |
---|
35 | } |
---|
36 | |
---|
37 | static void fatal_extension( |
---|
38 | rtems_fatal_source source, |
---|
39 | bool always_set_to_false, |
---|
40 | rtems_fatal_code code |
---|
41 | ) |
---|
42 | { |
---|
43 | if ( |
---|
44 | source == INTERNAL_ERROR_CORE |
---|
45 | && !always_set_to_false |
---|
46 | && code == INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT |
---|
47 | ) { |
---|
48 | TEST_END(); |
---|
49 | } |
---|
50 | } |
---|
51 | |
---|
52 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
53 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
54 | |
---|
55 | #define CONFIGURE_INITIAL_EXTENSIONS \ |
---|
56 | { .fatal = fatal_extension }, \ |
---|
57 | RTEMS_TEST_INITIAL_EXTENSION |
---|
58 | |
---|
59 | #define CONFIGURE_MAXIMUM_PROCESSORS 2 |
---|
60 | |
---|
61 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
62 | |
---|
63 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
64 | |
---|
65 | #define CONFIGURE_INIT |
---|
66 | |
---|
67 | #include <rtems/confdefs.h> |
---|
Note: See
TracBrowser
for help on using the repository browser.