4.104.114.95
Last change
on this file since fbd6c0f was
265d499a,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/28/08 at 16:44:13
|
2008-02-28 Joel Sherrill <joel.sherrill@…>
- iostream/init.cc: Add include of stdlib.h for exit(). Needed by gcc
4.3.x.
|
-
Property mode set to
100644
|
File size:
962 bytes
|
Rev | Line | |
---|
[e12ba0e] | 1 | /* Init |
---|
| 2 | * |
---|
| 3 | * This routine is the initialization task for this test program. |
---|
| 4 | * It is called from init_exec and has the responsibility for creating |
---|
| 5 | * and starting the tasks that make up the test. If the time of day |
---|
| 6 | * clock is required for the test, it should also be set to a known |
---|
| 7 | * value by this function. |
---|
| 8 | * |
---|
| 9 | * Input parameters: NONE |
---|
| 10 | * |
---|
| 11 | * Output parameters: NONE |
---|
| 12 | * |
---|
[265d499a] | 13 | * COPYRIGHT (c) 1989-2008. |
---|
[e12ba0e] | 14 | * On-Line Applications Research Corporation (OAR). |
---|
| 15 | * |
---|
| 16 | * The license and distribution terms for this file may be |
---|
| 17 | * found in the file LICENSE in this distribution or at |
---|
| 18 | * http://www.rtems.com/license/LICENSE. |
---|
| 19 | * |
---|
| 20 | * $Id$ |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | #define CONFIGURE_INIT |
---|
| 24 | #include "system.h" |
---|
| 25 | |
---|
| 26 | #include <iostream> |
---|
[265d499a] | 27 | #include <stdlib.h> |
---|
[e12ba0e] | 28 | |
---|
| 29 | rtems_task Init( |
---|
| 30 | rtems_task_argument ignored |
---|
| 31 | ) |
---|
| 32 | { |
---|
| 33 | std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl; |
---|
| 34 | std::cout << "Hello World" << std::endl; |
---|
| 35 | std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl; |
---|
| 36 | exit( 0 ); |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.