Index: c/src/lib/libbsp/arm/csb336/ChangeLog
===================================================================
--- c/src/lib/libbsp/arm/csb336/ChangeLog	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/csb336/ChangeLog	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -1,2 +1,9 @@
+2008-08-21	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* Makefile.am: No BSP should use exit.c as a file name. exit() is POSIX
+	routine.
+	* startup/bspclean.c: New file.
+	* startup/exit.c: Removed.
+
 2008-08-18	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: c/src/lib/libbsp/arm/csb336/Makefile.am
===================================================================
--- c/src/lib/libbsp/arm/csb336/Makefile.am	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/csb336/Makefile.am	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -28,5 +28,5 @@
 startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
     ../../shared/bsppredriverhook.c \
-    startup/bspstart.c startup/exit.c startup/memmap.c \
+    startup/bspstart.c startup/bspclean.c startup/memmap.c \
     ../../shared/bootcard.c ../../shared/sbrk.c \
     ../../shared/gnatinstallhandler.c
Index: c/src/lib/libbsp/arm/csb336/startup/bspclean.c
===================================================================
--- c/src/lib/libbsp/arm/csb336/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
+++ c/src/lib/libbsp/arm/csb336/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -0,0 +1,36 @@
+/*
+ *  Cogent CSB336 Shutdown code
+ *
+ *  Copyright (c) 2004 by Cogent Computer Systems
+ *  Written by Jay Monkman <jtm@lopingdog.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 <stdio.h>
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <rtems/libio.h>
+
+int uart_poll_read(int);
+void bsp_reset(void);
+
+void bsp_cleanup(void)
+{
+  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
+  /*
+   * AT this point, the console driver is disconnected => we must
+   * use polled output/input. This is exactly what printk
+   * does.
+   */
+  printk("\n");
+  printk(line);
+  while (BSP_poll_char() < 0) continue;
+
+  bsp_reset();
+
+}
Index: src/lib/libbsp/arm/csb336/startup/exit.c
===================================================================
--- c/src/lib/libbsp/arm/csb336/startup/exit.c	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ 	(revision )
@@ -1,36 +1,0 @@
-/*
- *  Cogent CSB336 Shutdown code
- *
- *  Copyright (c) 2004 by Cogent Computer Systems
- *  Written by Jay Monkman <jtm@lopingdog.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 <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-
-int uart_poll_read(int);
-void bsp_reset(void);
-
-void bsp_cleanup(void)
-{
-  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
-  /*
-   * AT this point, the console driver is disconnected => we must
-   * use polled output/input. This is exactly what printk
-   * does.
-   */
-  printk("\n");
-  printk(line);
-  while (BSP_poll_char() < 0) continue;
-
-  bsp_reset();
-
-}
Index: c/src/lib/libbsp/arm/csb337/ChangeLog
===================================================================
--- c/src/lib/libbsp/arm/csb337/ChangeLog	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/csb337/ChangeLog	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -1,2 +1,9 @@
+2008-08-21	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* Makefile.am: No BSP should use exit.c as a file name. exit() is POSIX
+	routine.
+	* startup/bspclean.c: New file.
+	* startup/exit.c: Removed.
+
 2008-08-18	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: c/src/lib/libbsp/arm/csb337/Makefile.am
===================================================================
--- c/src/lib/libbsp/arm/csb337/Makefile.am	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/csb337/Makefile.am	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -28,5 +28,5 @@
 startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
     ../../shared/bsppredriverhook.c \
-    startup/bspstart.c startup/exit.c startup/memmap.c \
+    startup/bspstart.c startup/bspclean.c startup/memmap.c \
     ../../shared/bootcard.c ../../shared/sbrk.c \
     ../../shared/gnatinstallhandler.c
Index: c/src/lib/libbsp/arm/csb337/startup/bspclean.c
===================================================================
--- c/src/lib/libbsp/arm/csb337/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
+++ c/src/lib/libbsp/arm/csb337/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -0,0 +1,37 @@
+/*
+ * Cogent CSB337 Shutdown  code
+ *
+ * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.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 <stdio.h>
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <rtems/libio.h>
+
+int dbgu_poll_read(int);
+
+void rtemsReboot (void)
+{
+  asm volatile ("b _start");
+}
+
+void bsp_cleanup(void)
+{
+  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
+  /*
+   * AT this point, the console driver is disconnected => we must
+   * use polled output/input. This is exactly what printk
+   * does.
+   */
+  printk("\n");
+  printk(line);
+  while (dbgu_poll_read(0) < 0) continue;
+}
Index: src/lib/libbsp/arm/csb337/startup/exit.c
===================================================================
--- c/src/lib/libbsp/arm/csb337/startup/exit.c	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ 	(revision )
@@ -1,37 +1,0 @@
-/*
- * Cogent CSB337 Shutdown  code
- *
- * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.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 <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-
-int dbgu_poll_read(int);
-
-void rtemsReboot (void)
-{
-  asm volatile ("b _start");
-}
-
-void bsp_cleanup(void)
-{
-  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
-  /*
-   * AT this point, the console driver is disconnected => we must
-   * use polled output/input. This is exactly what printk
-   * does.
-   */
-  printk("\n");
-  printk(line);
-  while (dbgu_poll_read(0) < 0) continue;
-}
Index: c/src/lib/libbsp/arm/edb7312/ChangeLog
===================================================================
--- c/src/lib/libbsp/arm/edb7312/ChangeLog	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/edb7312/ChangeLog	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -1,2 +1,9 @@
+2008-08-21	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* Makefile.am: No BSP should use exit.c as a file name. exit() is POSIX
+	routine.
+	* startup/bspclean.c: New file.
+	* startup/exit.c: Removed.
+
 2008-08-18	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: c/src/lib/libbsp/arm/edb7312/Makefile.am
===================================================================
--- c/src/lib/libbsp/arm/edb7312/Makefile.am	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/edb7312/Makefile.am	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -30,5 +30,5 @@
 startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
     ../../shared/bsppredriverhook.c \
-    startup/bspstart.c startup/exit.c ../../shared/bootcard.c \
+    startup/bspstart.c startup/bspclean.c ../../shared/bootcard.c \
     ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
 clock_SOURCES = clock/clockdrv.c
Index: c/src/lib/libbsp/arm/edb7312/startup/bspclean.c
===================================================================
--- c/src/lib/libbsp/arm/edb7312/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
+++ c/src/lib/libbsp/arm/edb7312/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -0,0 +1,40 @@
+/*
+ * Cirrus EP7312 BSP Shutdown  code
+ *
+ * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.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 <stdio.h>
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <rtems/libio.h>
+
+int uart_poll_read(int);
+
+void rtemsReboot (void)
+{
+  asm volatile ("b _start");
+}
+
+void bsp_cleanup(void)
+{
+  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
+  /*
+   * AT this point, the console driver is disconnected => we must
+   * use polled output/input. This is exactly what printk
+   * does.
+   */
+  printk("\n");
+  printk(line);
+  while (uart_poll_read(0) < 0) continue;
+
+  /* rtemsReboot(); */
+}
Index: src/lib/libbsp/arm/edb7312/startup/exit.c
===================================================================
--- c/src/lib/libbsp/arm/edb7312/startup/exit.c	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ 	(revision )
@@ -1,40 +1,0 @@
-/*
- * Cirrus EP7312 BSP Shutdown  code
- *
- * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.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 <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-
-int uart_poll_read(int);
-
-void rtemsReboot (void)
-{
-  asm volatile ("b _start");
-}
-
-void bsp_cleanup(void)
-{
-  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
-  /*
-   * AT this point, the console driver is disconnected => we must
-   * use polled output/input. This is exactly what printk
-   * does.
-   */
-  printk("\n");
-  printk(line);
-  while (uart_poll_read(0) < 0) continue;
-
-  /* rtemsReboot(); */
-}
Index: c/src/lib/libbsp/arm/gba/ChangeLog
===================================================================
--- c/src/lib/libbsp/arm/gba/ChangeLog	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/gba/ChangeLog	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -1,2 +1,9 @@
+2008-08-21	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* Makefile.am: No BSP should use exit.c as a file name. exit() is POSIX
+	routine.
+	* startup/bspclean.c: New file.
+	* startup/exit.c: Removed.
+
 2008-08-18	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: c/src/lib/libbsp/arm/gba/Makefile.am
===================================================================
--- c/src/lib/libbsp/arm/gba/Makefile.am	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/gba/Makefile.am	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -39,5 +39,5 @@
 
 startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
-    ../../shared/bsppredriverhook.c startup/exit.c \
+    ../../shared/bsppredriverhook.c startup/bspclean.c \
     ../../shared/bootcard.c ../../shared/sbrk.c \
     ../../shared/gnatinstallhandler.c
Index: c/src/lib/libbsp/arm/gba/startup/bspclean.c
===================================================================
--- c/src/lib/libbsp/arm/gba/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
+++ c/src/lib/libbsp/arm/gba/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -0,0 +1,54 @@
+/**
+ *  @file exit.c
+ *
+ *  Routines to shutdown and reboot the BSP.
+ */
+/*
+ *  RTEMS GBA BSP
+ *
+ *  Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net>
+ *
+ *  The license and distribution terms for this file may be
+ *  found in found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#include <stdio.h>
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <rtems/libio.h>
+#include <gba.h>
+
+
+/**
+ *  @brief rtemsReboot BSP routine reboot rtems
+ *
+ *  Input parameters:  None
+ *
+ *  Output parameters: None
+ */
+void rtemsReboot (void)
+{
+   asm volatile ("ldr  r0, =_gba_reset");
+   asm volatile ("bx   r0");
+}
+
+/**
+ *  @brief bsp_cleanup BSP routine wait input from user for rebooting
+ *
+ *  Normally at this point, the console driver is disconnected => we must
+ *  use polled output/input. This is exactly what printk does.
+ *
+ *  @param  None
+ *  @return None
+ */
+void bsp_cleanup(void)
+{
+  static const char line[]="\nEXECUTIVE SHUTDOWN! Press button to reboot...";
+  printk("\n");
+  printk("%s",line);
+  while ( !GBA_ANY_KEY(GBA_KEY_ALL) );
+  rtemsReboot();
+}
Index: src/lib/libbsp/arm/gba/startup/exit.c
===================================================================
--- c/src/lib/libbsp/arm/gba/startup/exit.c	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ 	(revision )
@@ -1,54 +1,0 @@
-/**
- *  @file exit.c
- *
- *  Routines to shutdown and reboot the BSP.
- */
-/*
- *  RTEMS GBA BSP
- *
- *  Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net>
- *
- *  The license and distribution terms for this file may be
- *  found in found in the file LICENSE in this distribution or at
- *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
- */
-
-#include <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-#include <gba.h>
-
-
-/**
- *  @brief rtemsReboot BSP routine reboot rtems
- *
- *  Input parameters:  None
- *
- *  Output parameters: None
- */
-void rtemsReboot (void)
-{
-   asm volatile ("ldr  r0, =_gba_reset");
-   asm volatile ("bx   r0");
-}
-
-/**
- *  @brief bsp_cleanup BSP routine wait input from user for rebooting
- *
- *  Normally at this point, the console driver is disconnected => we must
- *  use polled output/input. This is exactly what printk does.
- *
- *  @param  None
- *  @return None
- */
-void bsp_cleanup(void)
-{
-  static const char line[]="\nEXECUTIVE SHUTDOWN! Press button to reboot...";
-  printk("\n");
-  printk("%s",line);
-  while ( !GBA_ANY_KEY(GBA_KEY_ALL) );
-  rtemsReboot();
-}
Index: c/src/lib/libbsp/arm/gp32/ChangeLog
===================================================================
--- c/src/lib/libbsp/arm/gp32/ChangeLog	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/gp32/ChangeLog	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -1,2 +1,9 @@
+2008-08-21	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* Makefile.am: No BSP should use exit.c as a file name. exit() is POSIX
+	routine.
+	* startup/bspclean.c: New file.
+	* startup/exit.c: Removed.
+
 2008-08-18	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: c/src/lib/libbsp/arm/gp32/Makefile.am
===================================================================
--- c/src/lib/libbsp/arm/gp32/Makefile.am	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ c/src/lib/libbsp/arm/gp32/Makefile.am	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -29,5 +29,5 @@
 startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
     ../../shared/bsppredriverhook.c \
-    startup/bspstart.c startup/exit.c startup/memmap.c \
+    startup/bspstart.c startup/bspclean.c startup/memmap.c \
     ../../shared/bootcard.c ../../shared/sbrk.c \
     ../../shared/gnatinstallhandler.c
Index: c/src/lib/libbsp/arm/gp32/startup/bspclean.c
===================================================================
--- c/src/lib/libbsp/arm/gp32/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
+++ c/src/lib/libbsp/arm/gp32/startup/bspclean.c	(revision 21c9770effbd14a18c132cd8bd16442240e36802)
@@ -0,0 +1,29 @@
+/*-------------------------------------------------------------------------+
+| exit.c - ARM BSP 
++--------------------------------------------------------------------------+
+| Routines to shutdown and reboot the BSP.
++--------------------------------------------------------------------------+
+|
+| Copyright (c) 2000 Canon Research Centre France SA.
+| Emmanuel Raguet, mailto:raguet@crf.canon.fr
+|
+|   The license and distribution terms for this file may be
+|   found in found in the file LICENSE in this distribution or at
+|   http://www.rtems.com/license/LICENSE.
+|
++--------------------------------------------------------------------------*/
+
+
+#include <stdio.h>
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <rtems/libio.h>
+
+void bsp_reset(void);
+
+void bsp_cleanup(void)
+{
+  bsp_reset();
+}
+
+
Index: src/lib/libbsp/arm/gp32/startup/exit.c
===================================================================
--- c/src/lib/libbsp/arm/gp32/startup/exit.c	(revision cec5c069b08ce39fe17af5d0a0df278469f46c57)
+++ 	(revision )
@@ -1,29 +1,0 @@
-/*-------------------------------------------------------------------------+
-| exit.c - ARM BSP 
-+--------------------------------------------------------------------------+
-| Routines to shutdown and reboot the BSP.
-+--------------------------------------------------------------------------+
-|
-| Copyright (c) 2000 Canon Research Centre France SA.
-| Emmanuel Raguet, mailto:raguet@crf.canon.fr
-|
-|   The license and distribution terms for this file may be
-|   found in found in the file LICENSE in this distribution or at
-|   http://www.rtems.com/license/LICENSE.
-|
-+--------------------------------------------------------------------------*/
-
-
-#include <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-
-void bsp_reset(void);
-
-void bsp_cleanup(void)
-{
-  bsp_reset();
-}
-
-
