diff options
Diffstat (limited to 'c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c')
-rw-r--r-- | c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c b/c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c deleted file mode 100644 index 2ea71522aa..0000000000 --- a/c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Philips LPC22XX/LPC21xx BSP Shutdown code - * Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.com> - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * - * http://www.rtems.com/license/LICENSE. - * - * - * $Id$ -*/ - -#include <bsp.h> -#include <rtems/bspIo.h> -#include <rtems/libio.h> - -int uart_poll_read(int); - -void rtemsReboot (void) -{ -#ifdef __thumb__ - int tmp; - asm volatile (" .code 16 \n" \ - "ldr %[tmp], =_start \n" \ - "bx %[tmp] \n" \ - "nop \n" \ - : [tmp]"=&r" (tmp) ); -#else - asm volatile ("b _start"); -#endif -} - -void bsp_cleanup(void) -{ - /* - * AT this point, the console driver is disconnected => we must - * use polled output/input. This is exactly what printk - * does. - */ - printk("\nEXECUTIVE SHUTDOWN! Any key to reboot..."); - while (uart_poll_read(0) < 0) continue; - - /* rtemsReboot(); */ -} |