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

This commit is contained in:
Daniel Ramirez
2013-11-21 19:07:59 -06:00
committed by Gedare Bloom
parent 27116f25ad
commit 995eb4beb6
3 changed files with 21 additions and 9 deletions

View File

@@ -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 \

View File

@@ -0,0 +1,20 @@
/*
* By Yang Xi <hiyangxi@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
}

View File

@@ -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
}