[rtems commit] gumstix: Move bsp_reset() to gumstix/startup/bspreset.c

Gedare Bloom gedare at rtems.org
Fri Nov 22 11:19:28 UTC 2013


Module:    rtems
Branch:    master
Commit:    995eb4beb620ee90d52d813db3cc653c70f27b70
Changeset: http://git.rtems.org/rtems/commit/?id=995eb4beb620ee90d52d813db3cc653c70f27b70

Author:    Daniel Ramirez <javamonn at gmail.com>
Date:      Thu Nov 21 19:07:59 2013 -0600

gumstix: Move bsp_reset() to gumstix/startup/bspreset.c

---

 c/src/lib/libbsp/arm/gumstix/Makefile.am        |    2 +-
 c/src/lib/libbsp/arm/gumstix/startup/bspreset.c |   20 ++++++++++++++++++++
 c/src/lib/libbsp/arm/gumstix/startup/bspstart.c |    8 --------
 3 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/c/src/lib/libbsp/arm/gumstix/Makefile.am b/c/src/lib/libbsp/arm/gumstix/Makefile.am
index 16fff27..6372caf 100644
--- a/c/src/lib/libbsp/arm/gumstix/Makefile.am
+++ b/c/src/lib/libbsp/arm/gumstix/Makefile.am
@@ -32,7 +32,7 @@ libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
   ../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
   ../../shared/bootcard.c ../../shared/sbrk.c \
   ../../shared/gnatinstallhandler.c ../../shared/bsppretaskinghook.c \
-  ../../shared/bspclean.c startup/bspstart.c startup/memmap.c
+  ../../shared/bspclean.c startup/bspstart.c startup/bspreset.c startup/memmap.c
 
 #console
 libbsp_a_SOURCES += console/uarts.c ../../shared/console.c \
diff --git a/c/src/lib/libbsp/arm/gumstix/startup/bspreset.c b/c/src/lib/libbsp/arm/gumstix/startup/bspreset.c
new file mode 100644
index 0000000..0f773dc
--- /dev/null
+++ b/c/src/lib/libbsp/arm/gumstix/startup/bspreset.c
@@ -0,0 +1,20 @@
+/*
+ *  By Yang Xi <hiyangxi at 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.
+ */
+
+#include <bsp.h>
+#include <bsp/irq-generic.h>
+#include <rtems/libcsupport.h>
+#include <rtems/libio.h>
+#include <pxa255.h>
+
+void bsp_reset( void )
+{
+#if ON_SKYEYE == 1
+  SKYEYE_MAGIC_ADDRESS = 0xff;
+#endif
+}
diff --git a/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c b/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c
index 369e3fc..1a174af 100644
--- a/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c
@@ -42,11 +42,3 @@ void bsp_start_default( void )
  *  can override the actual bsp_start routine used.
  */
 void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
-
-
-void bsp_reset( void )
-{
-#if ON_SKYEYE == 1
-  SKYEYE_MAGIC_ADDRESS = 0xff;
-#endif
-}




More information about the vc mailing list