4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * Cirrus EP7312 BSP Shutdown code |
---|
3 | * |
---|
4 | * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com> |
---|
5 | * |
---|
6 | * The license and distribution terms for this file may be |
---|
7 | * found in the file LICENSE in this distribution or at |
---|
8 | * |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #include <stdio.h> |
---|
16 | #include <bsp.h> |
---|
17 | #include <rtems/bspIo.h> |
---|
18 | #include <rtems/libio.h> |
---|
19 | |
---|
20 | int uart_poll_read(int); |
---|
21 | |
---|
22 | void rtemsReboot (void) |
---|
23 | { |
---|
24 | asm volatile ("b _start"); |
---|
25 | } |
---|
26 | |
---|
27 | void bsp_cleanup(void) |
---|
28 | { |
---|
29 | static char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot..."; |
---|
30 | /* |
---|
31 | * AT this point, the console driver is disconnected => we must |
---|
32 | * use polled output/input. This is exactly what printk |
---|
33 | * does. |
---|
34 | */ |
---|
35 | printk("\n"); |
---|
36 | printk(line); |
---|
37 | while (uart_poll_read(0) < 0) continue; |
---|
38 | |
---|
39 | /* rtemsReboot(); */ |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.