diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-25 10:43:38 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-25 14:31:28 +0200 |
commit | e945b049dc650ee2270740585a2c6d14bd925279 (patch) | |
tree | ccd1f3cd6bc9bd44435b25918fc4e934a6aff6a4 /bsps/arm/lpc176x/start/restart.c | |
parent | bsp/lpc24xx: Move source files to bsps (diff) | |
download | rtems-e945b049dc650ee2270740585a2c6d14bd925279.tar.bz2 |
bsp/lpc176x: Move source files to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/arm/lpc176x/start/restart.c')
-rw-r--r-- | bsps/arm/lpc176x/start/restart.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bsps/arm/lpc176x/start/restart.c b/bsps/arm/lpc176x/start/restart.c new file mode 100644 index 0000000000..d6e5783f53 --- /dev/null +++ b/bsps/arm/lpc176x/start/restart.c @@ -0,0 +1,35 @@ +/** + * @file + * + * @ingroup lpc176x + * + * @brief Restart implementation. + */ + +/* + * Copyright (c) 2011-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.org/license/LICENSE. + */ + +#include <rtems.h> +#include <bsp.h> + +void bsp_restart( const void *const addr ) +{ + rtems_interrupt_level level; + + void (*start) ( void ) = addr; + + rtems_interrupt_disable( level ); + (void) level; /* avoid set but not used warning */ + ( *start )(); +} |