5
Last change
on this file since 99de42c was
e6df806,
checked in by Chris Johns <chrisj@…>, on 11/08/17 at 02:27:25
|
tests: Use ld to map (wrap) printf, puts and putchar to tester functions.
- Remove the macro defines and the need for tmacro.h by remapping the
symbols using ld's wrap option.
- Remove FLUSH_OUTPUT, it was empty.
- Move rtems_test_exit to libmisc/testsupport as a function.
Update #3199.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2011. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifdef HAVE_CONFIG_H |
---|
11 | #include "config.h" |
---|
12 | #endif |
---|
13 | |
---|
14 | #include "system.h" |
---|
15 | #include "tmacros.h" |
---|
16 | |
---|
17 | rtems_asr Process_asr( |
---|
18 | rtems_signal_set the_signal_set |
---|
19 | ) |
---|
20 | { |
---|
21 | rtems_status_code status; |
---|
22 | |
---|
23 | printf( |
---|
24 | "ASR - ENTRY - signal => %08" PRIxrtems_signal_set "\n", |
---|
25 | the_signal_set |
---|
26 | ); |
---|
27 | switch( the_signal_set ) { |
---|
28 | case RTEMS_SIGNAL_16: |
---|
29 | case RTEMS_SIGNAL_17: |
---|
30 | case RTEMS_SIGNAL_18 | RTEMS_SIGNAL_19: |
---|
31 | break; |
---|
32 | case RTEMS_SIGNAL_0: |
---|
33 | case RTEMS_SIGNAL_1: |
---|
34 | puts( "ASR - rtems_task_wake_after - yield processor" ); |
---|
35 | status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR ); |
---|
36 | directive_failed( status, "rtems_task_wake_after yield" ); |
---|
37 | break; |
---|
38 | case RTEMS_SIGNAL_3: |
---|
39 | Asr_fired = TRUE; |
---|
40 | break; |
---|
41 | } |
---|
42 | printf( |
---|
43 | "ASR - EXIT - signal => %08" PRIxrtems_signal_set "\n", |
---|
44 | the_signal_set |
---|
45 | ); |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.