4.104.114.84.95
Last change
on this file since 6617845 was
2d354ea6,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/27/00 at 06:17:44
|
Minor problems addressed with the merger and with the arm_bare_bsp.
That BSP now has a stub clock driver so the tests can link even
if they won't execute. A handful of Makefiles had to be updated
and we had to account for printk.c being a shared file now.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[08330bf] | 1 | /*-------------------------------------------------------------------------+ |
---|
| 2 | | exit.c - ARM BSP |
---|
| 3 | +--------------------------------------------------------------------------+ |
---|
| 4 | | Routines to shutdown and reboot the BSP. |
---|
| 5 | +--------------------------------------------------------------------------+ |
---|
| 6 | | |
---|
| 7 | | Copyright (c) 2000 Canon Research Centre France SA. |
---|
| 8 | | Emmanuel Raguet, mailto:raguet@crf.canon.fr |
---|
| 9 | | |
---|
| 10 | | The license and distribution terms for this file may be |
---|
| 11 | | found in found in the file LICENSE in this distribution or at |
---|
| 12 | | http://www.OARcorp.com/rtems/license.html. |
---|
| 13 | | |
---|
| 14 | +--------------------------------------------------------------------------*/ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #include <stdio.h> |
---|
| 18 | #include <bsp.h> |
---|
[2d354ea6] | 19 | #include <bspIo.h> |
---|
[08330bf] | 20 | #include <rtems/libio.h> |
---|
| 21 | |
---|
| 22 | void rtemsReboot (void) |
---|
| 23 | { |
---|
| 24 | asm volatile ("b _start"); |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | void bsp_cleanup(void) |
---|
| 28 | { |
---|
| 29 | unsigned char ch; |
---|
| 30 | static char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot..."; |
---|
| 31 | /* |
---|
| 32 | * AT this point, the console driver is disconnected => we must |
---|
| 33 | * use polled output/input. This is exactly what printk |
---|
| 34 | * does. |
---|
| 35 | */ |
---|
| 36 | printk("\n"); |
---|
| 37 | printk(line); |
---|
| 38 | ch = BSP_poll_char(); |
---|
| 39 | rtemsReboot(); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.