bsp/mpc55xx: Add bsp_restart()

This commit is contained in:
Christian Mauderer
2012-03-29 10:58:10 +02:00
committed by Sebastian Huber
parent c44b517f87
commit c838ca2dfa
3 changed files with 28 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += startup/exc-vector-base.S
libbsp_a_SOURCES += startup/get-system-clock.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-ebi-cs.c
libbsp_a_SOURCES += startup/start-config-ebi-cs-cal.c

View File

@@ -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
* Obere Lagerstr. 30
@@ -72,6 +72,8 @@ int smsc9218i_attach_detach(
rtems_status_code bsp_register_i2c(void);
void bsp_restart(void *addr);
#endif /* ASM */
#ifdef __cplusplus

View 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)();
}