forked from Imagelibrary/rtems
Mark bsp_reset() as no-return. Use default BSP fatal handler in lm32 and m68k BSPs. Remove empty bsp_reset() implementation. Update #5067.
35 lines
797 B
C
35 lines
797 B
C
/*
|
|
* Cogent CSB337 - AT91RM9200 Startup code
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2004 by Cogent Computer Systems
|
|
* Written by Jay Monkman <jtm@lopingdog.com>
|
|
*
|
|
* 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 <bsp.h>
|
|
#include <bsp/bootcard.h>
|
|
#include <at91rm9200.h>
|
|
#include <at91rm9200_pmc.h>
|
|
#include <at91rm9200_emac.h>
|
|
|
|
void bsp_reset( rtems_fatal_source source, rtems_fatal_code code )
|
|
{
|
|
rtems_interrupt_level level;
|
|
|
|
(void) source;
|
|
(void) code;
|
|
|
|
rtems_interrupt_disable(level);
|
|
(void) level; /* avoid set but not used warning */
|
|
|
|
/* Enable the watchdog timer, then wait for the world to end. */
|
|
ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1;
|
|
|
|
while(1)
|
|
;
|
|
}
|