summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/arm/edb7312/startup/bspreset.c
blob: eace9a0466f4948ad14c0e6d6e97cf84246f818b (plain) (tree)
1
2
3
4
5
6
7
8
9
  
                                                              



                                                           


                
                   


                    
                  

                                                                       

                              
                                
      
 
/*
 *  Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
 *
 *  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>
#include <ep7312.h>

void bsp_reset(void)
{
#if ON_SKYEYE == 1
  #define SKYEYE_MAGIC_ADDRESS (*(volatile unsigned int *)(0xb0000000))

  SKYEYE_MAGIC_ADDRESS = 0xff;
#else
  __asm__ volatile ("b _start");
#endif
}