forked from Imagelibrary/rtems
gumstix: Move bsp_reset() to gumstix/startup/bspreset.c
This commit is contained in:
committed by
Gedare Bloom
parent
27116f25ad
commit
995eb4beb6
@@ -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 \
|
||||
|
||||
20
c/src/lib/libbsp/arm/gumstix/startup/bspreset.c
Normal file
20
c/src/lib/libbsp/arm/gumstix/startup/bspreset.c
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user