summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/mips/csb350/startup/bspreset.c
blob: 32c109ca1fdf8190dde7b0ea0ab1ebd421e28f67 (plain) (tree)
1
2
3
4
5
6
7





                                                           
                                         






                           
 






                                                                             
/*
 *  COPYRIGHT (c) 1989-2008.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  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 <libcpu/au1x00.h>

void bsp_reset(void)
{
  void (*reset_func)(void);

  reset_func = (void *)0xbfc00000;

  mips_set_sr( 0x00200000 ); /* all interrupts off, boot exception vectors */

  /* Try to restart bootloader */
  reset_func();
}