forked from Imagelibrary/rtems
bsp/mpc55xx: Add bsp_restart()
This commit is contained in:
committed by
Sebastian Huber
parent
c44b517f87
commit
c838ca2dfa
@@ -72,6 +72,7 @@ libbsp_a_SOURCES += startup/bspstart.c
|
|||||||
libbsp_a_SOURCES += startup/exc-vector-base.S
|
libbsp_a_SOURCES += startup/exc-vector-base.S
|
||||||
libbsp_a_SOURCES += startup/get-system-clock.c
|
libbsp_a_SOURCES += startup/get-system-clock.c
|
||||||
libbsp_a_SOURCES += startup/reset.c
|
libbsp_a_SOURCES += startup/reset.c
|
||||||
|
libbsp_a_SOURCES += startup/restart.c
|
||||||
libbsp_a_SOURCES += startup/start-config-clock.c
|
libbsp_a_SOURCES += startup/start-config-clock.c
|
||||||
libbsp_a_SOURCES += startup/start-config-ebi-cs.c
|
libbsp_a_SOURCES += startup/start-config-ebi-cs.c
|
||||||
libbsp_a_SOURCES += startup/start-config-ebi-cs-cal.c
|
libbsp_a_SOURCES += startup/start-config-ebi-cs-cal.c
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008-2011 embedded brains GmbH. All rights reserved.
|
* Copyright (c) 2008-2012 embedded brains GmbH. All rights reserved.
|
||||||
*
|
*
|
||||||
* embedded brains GmbH
|
* embedded brains GmbH
|
||||||
* Obere Lagerstr. 30
|
* Obere Lagerstr. 30
|
||||||
@@ -72,6 +72,8 @@ int smsc9218i_attach_detach(
|
|||||||
|
|
||||||
rtems_status_code bsp_register_i2c(void);
|
rtems_status_code bsp_register_i2c(void);
|
||||||
|
|
||||||
|
void bsp_restart(void *addr);
|
||||||
|
|
||||||
#endif /* ASM */
|
#endif /* ASM */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
24
c/src/lib/libbsp/powerpc/mpc55xxevb/startup/restart.c
Normal file
24
c/src/lib/libbsp/powerpc/mpc55xxevb/startup/restart.c
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2008-2012 embedded brains GmbH. All rights reserved.
|
||||||
|
*
|
||||||
|
* embedded brains GmbH
|
||||||
|
* Obere Lagerstr. 30
|
||||||
|
* 82178 Puchheim
|
||||||
|
* Germany
|
||||||
|
* <rtems@embedded-brains.de>
|
||||||
|
*
|
||||||
|
* 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>
|
||||||
|
|
||||||
|
void bsp_restart(void *addr)
|
||||||
|
{
|
||||||
|
rtems_interrupt_level level;
|
||||||
|
void (*start)(void) = addr;
|
||||||
|
|
||||||
|
rtems_interrupt_disable(level);
|
||||||
|
(*start)();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user