Files
rtems/bsps/arm/lpc176x/start/restart.c
Sebastian Huber e945b049dc bsp/lpc176x: Move source files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-25 14:31:28 +02:00

36 lines
688 B
C

/**
* @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 )();
}